From 9a7444794605789257ba4c2089b2346b3f36c046 Mon Sep 17 00:00:00 2001 From: Celtic Minstrel Date: Thu, 17 Jun 2021 21:02:24 -0400 Subject: [PATCH] Update deprecated stuff in [store_time_of_day] --- data/lua/wml/store_time_of_day.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/lua/wml/store_time_of_day.lua b/data/lua/wml/store_time_of_day.lua index 738ef9e33c9..8df099509bd 100644 --- a/data/lua/wml/store_time_of_day.lua +++ b/data/lua/wml/store_time_of_day.lua @@ -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