Skip to content

Commit

Permalink
use assertion in control_drop_gold
Browse files Browse the repository at this point in the history
  • Loading branch information
pionere committed Aug 9, 2024
1 parent fe730a8 commit f58eaa2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Source/control.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2204,10 +2204,7 @@ void control_drop_gold(int vkey)
{
int newValue;

if (myplr._pHitPoints < (1 << 6)) {
gbDropGoldFlag = false;
return;
}
assert(myplr._pHitPoints >= (1 << 6) || vkey == DVL_VK_ESCAPE);

if (vkey == DVL_VK_RETURN) {
if (dropGoldValue > 0)
Expand Down

0 comments on commit f58eaa2

Please sign in to comment.