[wesnoth-commits] [wesnoth/wesnoth] 4d5698: Fix rare crash in AI code
GitHub
noreply at github.com
Mon Apr 23 16:33:06 UTC 2018
Branch: refs/heads/master
Home: https://github.com/wesnoth/wesnoth
Commit: 4d569815d00fc0bb7be9fcc83705ebbf9a680bd8
https://github.com/wesnoth/wesnoth/commit/4d569815d00fc0bb7be9fcc83705ebbf9a680bd8
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