[wesnoth-commits] [wesnoth/wesnoth] 81ee0f: Make AI aspect handling in Lua more robust

Celtic Minstrel noreply at github.com
Sat Nov 23 19:15:21 UTC 2019


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 81ee0f0349435fbccd7fc50c2573ade63316591e
      https://github.com/wesnoth/wesnoth/commit/81ee0f0349435fbccd7fc50c2573ade63316591e
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2019-11-23 (Sat, 23 Nov 2019)

  Changed paths:
    M src/ai/composite/aspect.hpp
    M src/ai/lua/core.cpp
    M src/ai/lua/lua_object.hpp

  Log Message:
  -----------
  Make AI aspect handling in Lua more robust

There should never again be a bug where aspects of one type return nil instead of their value.

If support for a new type isn't explicitly added either in lua_object or in impl_ai_aspect_get, it'll raise a runtime error instead of returning nil.





More information about the Commits mailing list