last warning count game: 9845
This commit is contained in:
Walter Julius Hennecke 2013-05-25 00:23:52 +02:00
parent d08f91e6ae
commit c6fbc2146e

View file

@ -768,16 +768,13 @@ static qboolean G_LoadClassData( char* fileName )
if( Q_stricmpn( token, "WP_", 3 ) == 0 )
{
weapon = GetIDForString( WeaponTable, token );
int t = GetIDForString( WeaponTable, token );
if ( weapon > 0 ) {
if ( t >= 0 ) {
weapon = (unsigned)t;
g_classData[classIndex].weaponsFlags |= ( 1 << weapon );
continue;
}
if ( weapon == 0) {
g_classData[classIndex].weaponsFlags |= 1;
continue;
}
}
}