Update Player.cpp

This commit is contained in:
Jacobo 2022-01-18 07:26:24 -05:00 committed by GitHub
parent bca9326dba
commit df9d4fe2dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}