forked from Mirrors/openclonk
fixed possible zero pointer error
parent
2ee7f54d2a
commit
08246163b7
|
@ -163,7 +163,10 @@ func PauseAim()
|
|||
{
|
||||
if(!aim_weapon) return CancelAiming();
|
||||
ResetHands(1);
|
||||
aim_weapon->~OnPauseAim(this);
|
||||
|
||||
// might be invalid if the weapon does anything weird on Reset()
|
||||
if(aim_weapon)
|
||||
aim_weapon->~OnPauseAim(this);
|
||||
}
|
||||
|
||||
func RestartAim()
|
||||
|
|
Loading…
Reference in New Issue