1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2025-09-19 03:56:10 +08:00

Fix CKeyValues3Context::AllocString returning nullptr on empty strings

This commit is contained in:
GAMMACASE
2025-08-08 23:45:42 +03:00
parent 3f155e63e7
commit 02f47011ee

View File

@ -2034,6 +2034,9 @@ const char* CKeyValues3Context::AllocString( const char* pString, UtlSymLargeId_
if(out_symid)
*out_symid = sym;
if(sym == UTL_INVAL_SYMBOL_LARGE)
return "";
return m_Symbols.String( sym );
}