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 ff4ea3106f
commit f05cb34a6e

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 );
}