[wesnoth-commits] [wesnoth/wesnoth] 258a0e: Throw a Lua exception when creating a negative-HP ...

GitHub noreply at github.com
Tue May 15 17:23:36 UTC 2018


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 258a0e4689e9c000e3e0017ceed5e120156883ae
      https://github.com/wesnoth/wesnoth/commit/258a0e4689e9c000e3e0017ceed5e120156883ae
  Author: Jyrki Vesterinen <sandgtx at gmail.com>
  Date:   2018-05-15 (Tue, 15 May 2018)

  Changed paths:
    M src/game_events/pump.cpp
    M src/game_events/pump.hpp
    M src/units/unit.cpp

  Log Message:
  -----------
  Throw a Lua exception when creating a negative-HP unit in a Lua context

Instead of throwing a WML error. This allows the UMC author to get a stack
trace if the unit creation was triggered from Lua.

Requested by @gfgtdf in a comment of #3042.



      **NOTE:** This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.


More information about the Commits mailing list