[Commits] [wesnoth/wesnoth] a1a2e0: lua: fixup 9eaba64651944bbe463a77a2611f37697421f15...

GitHub noreply at github.com
Tue Dec 30 04:01:07 UTC 2014


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: a1a2e0e527cf1e114e5127f4d1a83b8b52b76e57
      https://github.com/wesnoth/wesnoth/commit/a1a2e0e527cf1e114e5127f4d1a83b8b52b76e57
  Author: Chris Beck <render787 at gmail.com>
  Date:   2014-12-29 (Mon, 29 Dec 2014)

  Changed paths:
    M src/scripting/game_lua_kernel.cpp

  Log Message:
  -----------
  lua: fixup 9eaba64651944bbe463a77a2611f37697421f15d

This commit broke the lua unit modify method for unit.side, the
reason was that I wasn't sure how to handle a safety check that
required a reference to the gamestate -- I'm not totally convinced
that units should not be allowed to be made in lua if there is not
an active gamestate.

However instead of commenting out this line, I should have
replaced it with a version that does the same thing without the
safety check... not sure why I didn't do this the first time.

This fixes lua errors that occur in the test scenario startup.





More information about the Commits mailing list