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:
@ -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 );
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user