Fix crash

This commit is contained in:
mittorn 2016-04-05 15:39:01 +00:00
parent c16d00c170
commit 5d96c43c65

View File

@ -1333,7 +1333,7 @@ int V_FindViewModelByWeaponModel(int weaponindex)
int len = strlen( weaponModel->name );
int i = 0;
while ( modelmap[i] != NULL )
while ( modelmap[i][0] != NULL )
{
if ( !strnicmp( weaponModel->name, modelmap[i][0], len ) )
{