assert assumption on armor

This commit is contained in:
Steffen Mecke 2018-09-13 10:59:15 +02:00
parent 69702df203
commit a90ae46d52
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}