fix lua error in 2p_Dark_Forecast 2
This commit is contained in:
parent
4c258ff550
commit
438ca7bc1e
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue