[wesnoth-commits] [wesnoth/wesnoth] 959530: Fix rare crash in AI code

GitHub noreply at github.com
Mon Apr 23 16:29:34 UTC 2018


  Branch: refs/heads/1.14
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 95953079895cf5c1cff89b0f7103ac850a3847db
      https://github.com/wesnoth/wesnoth/commit/95953079895cf5c1cff89b0f7103ac850a3847db
  Author: Jyrki Vesterinen <sandgtx at gmail.com>
  Date:   2018-04-23 (Mon, 23 Apr 2018)

  Changed paths:
    M src/actions/attack.cpp

  Log Message:
  -----------
  Fix rare crash in AI code

Reported in https://forums.wesnoth.org/viewtopic.php?p=626344#p626344

Regression from commit a3d5b9d603083ab0f3afcfbc9fc4c2432bb1623e.

The crash occurred when
* the attacker had only one weapon
* the said weapon was disabled, and
    - the defender had no weapons
    - the defender had only one weapon, or
    - all defender's weapons were disabled




More information about the Commits mailing list