mirror of
https://github.com/dhewm/dhewm3.git
synced 2025-04-20 01:16:41 +00:00
Update Player.cpp
This commit is contained in:
parent
bca9326dba
commit
df9d4fe2dc
1 changed files with 3 additions and 1 deletions
|
@ -4054,7 +4054,9 @@ void idPlayer::UpdateWeapon( void ) {
|
|||
if ( idealWeapon != -1 ) {
|
||||
animPrefix = spawnArgs.GetString( va( "def_weapon%d", idealWeapon ) );
|
||||
weapon.GetEntity()->GetWeaponDef( animPrefix, inventory.clip[ idealWeapon ] );
|
||||
assert( weapon.GetEntity()->IsLinked() );
|
||||
if ( ! weapon.GetEntity()->IsLinked() ) {
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue