mirror of
https://github.com/celisej567/BCWSsrc.git
synced 2026-01-07 14:09:48 +03:00
Fix crash on startup
This crashes on Linux as pKeyValuesData is NULL when deleteThis() is invoked. This likely is caused by another issue, but fixing this here seems good regardless.
This commit is contained in:
@@ -134,10 +134,13 @@ void LoadHudTextures( CUtlDict< CHudTexture *, int >& list, const char *szFilena
|
||||
pTemp = pTemp->GetNextKey();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Failed for some reason. Delete the Key data and abort.
|
||||
pKeyValuesData->deleteThis();
|
||||
pKeyValuesData->deleteThis();
|
||||
}
|
||||
else
|
||||
{
|
||||
Warning( "Unable to read script %s.\n", szFilenameWithoutExtension );
|
||||
}
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user