Update deprecated stuff in [store_time_of_day]

This commit is contained in:
Celtic Minstrel 2021-06-17 21:02:24 -04:00 committed by Celtic Minstrel
parent 96b5bf43ef
commit 9a74447946

View file

@ -12,9 +12,9 @@ function wesnoth.wml_actions.store_time_of_day(cfg)
local out
if x and y then
out = wesnoth.get_time_of_day(turn, {x, y})
out = wesnoth.schedule.get_time_of_day(x, y, turn)
else
out = wesnoth.get_time_of_day(turn)
out = wesnoth.schedule.get_time_of_day(nil, turn)
end
for key, value in pairs(out) do