fix lua error in 2p_Dark_Forecast

This commit is contained in:
gfgtdf 2018-03-31 20:11:43 +02:00
parent 546cb05d27
commit 9966f813b8

View file

@ -279,6 +279,9 @@ end)
-- which unit types get spawned is defined in the 'main_spawn' wml array which is also spawned at prestart
on_event("new turn", function()
local next_spawn = wml.variables["timed_spawn[0]"]
if next_spawn == nil then
return
end
if wesnoth.current.turn ~= next_spawn.turn then
return
end