mirror of
https://github.com/UberGames/rpgxEF.git
synced 2025-04-22 08:50:48 +00:00
fix
This commit is contained in:
parent
44034d927c
commit
88e770f27d
1 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue