Change to error

Should never happen, and be shown in release builds.
This commit is contained in:
Kawe Mazidjatari 2023-08-09 15:05:08 +02:00
parent 5f64cd83d8
commit 298bab630e

View File

@ -818,8 +818,8 @@ inline void CUtlMemory<T, I>::EnsureCapacity(int64 num)
if (IsExternallyAllocated()) if (IsExternallyAllocated())
{ {
// Can't grow a buffer whose memory was externally allocated // Can't grow a buffer whose memory was externally allocated
Assert(0); Error(eDLL_T::COMMON, EXIT_FAILURE, "EnsureCapacity( %zd ) called for external buffer of size %zd.\n", num, m_nAllocationCount);
return; return;
} }