mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-01-14 15:57:59 +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:
parent
5b2547a6ff
commit
48fb4ab56c
@ -134,11 +134,14 @@ void LoadHudTextures( CUtlDict< CHudTexture *, int >& list, const char *szFilena
|
||||
pTemp = pTemp->GetNextKey();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Failed for some reason. Delete the Key data and abort.
|
||||
pKeyValuesData->deleteThis();
|
||||
}
|
||||
else
|
||||
{
|
||||
Warning( "Unable to read script %s.\n", szFilenameWithoutExtension );
|
||||
}
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Purpose:
|
||||
|
Loading…
x
Reference in New Issue
Block a user