fix lua error in 2p_Dark_Forecast 2

This commit is contained in:
gfgtdf 2018-04-24 00:43:45 +02:00 committed by GitHub
parent c1f4cd52cc
commit 37c913c173
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -449,6 +449,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