From 298bab630e4eaf3a4391b9c3f8a482c2c815177d Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Wed, 9 Aug 2023 15:05:08 +0200 Subject: [PATCH] Change to error Should never happen, and be shown in release builds. --- r5dev/public/tier1/utlmemory.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/r5dev/public/tier1/utlmemory.h b/r5dev/public/tier1/utlmemory.h index 822c5db7..31a88604 100644 --- a/r5dev/public/tier1/utlmemory.h +++ b/r5dev/public/tier1/utlmemory.h @@ -818,8 +818,8 @@ inline void CUtlMemory::EnsureCapacity(int64 num) if (IsExternallyAllocated()) { - // Can't grow a buffer whose memory was externally allocated - Assert(0); + // Can't grow a buffer whose memory was externally allocated + Error(eDLL_T::COMMON, EXIT_FAILURE, "EnsureCapacity( %zd ) called for external buffer of size %zd.\n", num, m_nAllocationCount); return; }