From 94c2a5279f3a4e15241a7c31c484c3793ee412d6 Mon Sep 17 00:00:00 2001 From: Chip Barnaby Date: Mon, 14 Aug 2023 14:43:53 -0400 Subject: [PATCH] Fix incorrect assert() in CULT::cu_GetArraySize() --- src/cul.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/cul.h b/src/cul.h index a1ef5b7b7..05e685f41 100644 --- a/src/cul.h +++ b/src/cul.h @@ -263,11 +263,9 @@ struct CULT : public STBK // for initialized data to drive user interface std::string cu_MakeDoc( const CULT* pCULT0, const char* linePfx="", int options = 0) const; int cu_GetArraySize() const + // returns array size iff array, else 0 { -#if defined(_DEBUG) - assert(f & ARRAY); -#endif - return int(LI(p2)); + return (f & ARRAY) ? int(LI(p2)) : 0; } }; // struct CULT