mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-29 12:31:59 +00:00
fixup! lua: Simplify the __index and __newindex wrappers in wesnoth.deprecate_api
This commit is contained in:
parent
3ea5ee5f70
commit
1df045fba0
@ -216,7 +216,7 @@ function wesnoth.deprecate_api(elem_name, replacement, level, version, elem, det
|
||||
msg_shown = true
|
||||
wesnoth.deprecated_message(elem_name, level, version, message)
|
||||
end
|
||||
return elem[val]
|
||||
return elem[key]
|
||||
end
|
||||
mt.__newindex = function(self, key, val)
|
||||
if not msg_shown then
|
||||
|
Loading…
x
Reference in New Issue
Block a user