[wesnoth-commits] [wesnoth/wesnoth] 7c2d0c: Lua API: Fix location_set.of_pairs including the l...

Celtic Minstrel noreply at github.com
Fri Jul 2 20:56:21 UTC 2021


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 7c2d0c1c5dbda119b8fe5071831bd0790b638451
      https://github.com/wesnoth/wesnoth/commit/7c2d0c1c5dbda119b8fe5071831bd0790b638451
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-07-02 (Fri, 02 Jul 2021)

  Changed paths:
    M data/lua/location_set.lua

  Log Message:
  -----------
  Lua API: Fix location_set.of_pairs including the location in the value

This is the real cause of the breakage in 5a9c24c4e79d624e34aa475949a4aa49b1984322 and d04bd2bf5d2ad932ca9bb3203f4ff9f91411e261.
A returned location now has both x/y and 1/2, so the location_set logic removed the x/y but kept the 1/2, causing it to break when converted to a config.
This makes it use rawget when the value is a table, which fixes it.





More information about the Commits mailing list