From eee5c4b91c4756a1f74f468a4ee8bff628c8db38 Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Thu, 12 Dec 2024 08:51:39 -0700 Subject: [PATCH] Fixes --- LEGO1/lego/legoomni/src/worlds/act3.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/LEGO1/lego/legoomni/src/worlds/act3.cpp b/LEGO1/lego/legoomni/src/worlds/act3.cpp index cb816ca5..ec6aa03e 100644 --- a/LEGO1/lego/legoomni/src/worlds/act3.cpp +++ b/LEGO1/lego/legoomni/src/worlds/act3.cpp @@ -207,9 +207,10 @@ void Act3::RemovePizza(Act3Ammo& p_p) break; } } -#endif assert(i != MAX_PIZZAS); +#endif + assert(p_p.IsValid()); p_p.Remove(); } @@ -225,9 +226,10 @@ void Act3::RemoveDonut(Act3Ammo& p_p) break; } } -#endif assert(i != MAX_DONUTS); +#endif + assert(p_p.IsValid()); p_p.Remove(); }