mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-12-06 18:18:23 +00:00
Fix CKeyValues3Context::AllocString returning nullptr on empty strings
This commit is contained in:
parent
ff4ea3106f
commit
f05cb34a6e
@ -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 );
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user