Skip to content

Commit

Permalink
fix lua error in 2p_Dark_Forecast
Browse files Browse the repository at this point in the history
  • Loading branch information
gfgtdf committed Oct 28, 2018
1 parent 546cb05 commit 9966f81
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions data/multiplayer/scenarios/2p_Dark_Forecast.lua
Expand Up @@ -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
Expand Down

0 comments on commit 9966f81

Please sign in to comment.