forked from github/server
assert assumption on armor
This commit is contained in:
parent
69702df203
commit
a90ae46d52
1 changed files with 2 additions and 0 deletions
|
@ -1078,6 +1078,8 @@ int calculate_armor(troop dt, const weapon_type *dwtype, const weapon_type *awty
|
|||
|
||||
total_armor += magic_armor;
|
||||
|
||||
assert(total_armor >= 0 || !"armor < 0 means hit denied");
|
||||
|
||||
return total_armor;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue