From f58eaa2571618798136f22014270ee8708204259 Mon Sep 17 00:00:00 2001 From: pionere Date: Fri, 9 Aug 2024 10:01:25 +0200 Subject: [PATCH] use assertion in control_drop_gold --- Source/control.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Source/control.cpp b/Source/control.cpp index a62c3eabad5..6cb29d6eeb0 100644 --- a/Source/control.cpp +++ b/Source/control.cpp @@ -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)