[wesnoth-commits] [wesnoth/wesnoth] 56131f: lua: Fix a bug when calling wesnoth.deprecate_api ...

jostephd noreply at github.com
Thu Sep 26 12:17:07 UTC 2019


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 56131f14c44712ce7e6b267d7d81bbcfd4b24719
      https://github.com/wesnoth/wesnoth/commit/56131f14c44712ce7e6b267d7d81bbcfd4b24719
  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


  Commit: 21823d93329a616dd351680ed6991d64a6e19f27
      https://github.com/wesnoth/wesnoth/commit/21823d93329a616dd351680ed6991d64a6e19f27
  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


Compare: https://github.com/wesnoth/wesnoth/compare/1f66baca841b...21823d93329a



More information about the Commits mailing list