fixup! lua: Simplify the __index and __newindex wrappers in wesnoth.deprecate_api
This commit is contained in:
parent
3ea5ee5f70
commit
1df045fba0
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue