[wesnoth-commits] [wesnoth/wesnoth] 256838: lua: Fix a bug when calling wesnoth.deprecate_api ...
jostephd
noreply at github.com
Thu Sep 26 12:23:33 UTC 2019
Branch: refs/heads/1.14
Home: https://github.com/wesnoth/wesnoth
Commit: 256838796b8d33fbcb387fb42f7244684abf0bdf
https://github.com/wesnoth/wesnoth/commit/256838796b8d33fbcb387fb42f7244684abf0bdf
Author: josteph <josteph at fastmail.com>
Date: 2019-09-26 (Thu, 26 Sep 2019)
Changed paths:
M data/lua/core.lua
Log Message:
-----------
lua: Fix a bug when calling wesnoth.deprecate_api on a table that had a metatable.
The old metatable was used as the metatable of the new element's
metatable, which doesn't make any sense at all.
Fixes #4079
(cherry picked from commit 56131f14c44712ce7e6b267d7d81bbcfd4b24719)
Commit: 3bc8972f1dc42cf551273197af397607ad5dd824
https://github.com/wesnoth/wesnoth/commit/3bc8972f1dc42cf551273197af397607ad5dd824
Author: josteph <josteph at fastmail.com>
Date: 2019-09-26 (Thu, 26 Sep 2019)
Changed paths:
M data/lua/core.lua
Log Message:
-----------
Lua: Fix wesnoth.deprecate_api for the case of deprecating a table that had a metamethod other than __index/__newindex
(cherry picked from commit 21823d93329a616dd351680ed6991d64a6e19f27)
Compare: https://github.com/wesnoth/wesnoth/compare/251de6eee3a4...3bc8972f1dc4
More information about the Commits
mailing list