Fix deprecation message

This commit is contained in:
Hejnewar 2021-05-10 11:23:54 +02:00
parent 0db6ac37c2
commit e1a79988b4

View file

@ -222,7 +222,7 @@ if wesnoth.kernel_type() == "Game Lua Kernel" then
local m = wesnoth.current.map
return m.playable_width, m.playable_height, m.border_size
end)
wesnoth.special_locations = wesnoth.deprecate_api('wesnoth.special_locations', 'wesnoth.current.map:special_locations', 1, nil, setmetatable({}, {
wesnoth.special_locations = wesnoth.deprecate_api('wesnoth.special_locations', 'wesnoth.current.map.special_locations', 1, nil, setmetatable({}, {
__index = function(_, k) return wesnoth.current.map.special_locations[k] end,
__newindex = function(_, k, v) wesnoth.current.map.special_locations[k] = v end,
__len = function(_)