mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2026-10-12 02:38:00 +08:00
Fix CKeyValues3Context::AllocString returning nullptr on empty strings
This commit is contained in:
1 parent
3f155e63e7
commit
02f47011ee
1 file changed
+3
@@ -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