This commit is contained in:
Walter Julius Hennecke 2013-05-27 23:57:34 +02:00
parent 44034d927c
commit 88e770f27d
1 changed files with 3 additions and 2 deletions

View File

@ -82,9 +82,10 @@ void SP_target_give( gentity_t *ent )
}
if( Q_stricmpn( token, "WP_", 3 ) == 0) {
weapon = GetIDForString( WeaponTable, token );
int i = GetIDForString( WeaponTable, token );
if ( weapon >= 0 ) {
if ( i >= 0 ) {
weapon = (unsigned)i;
ent->s.time |= (1<<weapon);
}
}