fix lua error in 2p_Dark_Forecast 2

This commit is contained in:
gfgtdf 2018-04-24 00:43:45 +02:00 committed by Charles Dang
parent 4c258ff550
commit 438ca7bc1e

View file

@ -446,6 +446,9 @@ end
on_event("side 3 turn", function()
-- get next weather event
local weather_event = wesnoth.get_variable("weather_event[0]")
if weather_event == nil then
return
end
if wesnoth.current.turn ~= weather_event.turn then
return
end