forked from Mirrors/openclonk
Fix possible null pointer.
parent
1416887a22
commit
ef48a60b27
|
@ -254,6 +254,8 @@ public func StopAim()
|
|||
|
||||
private func DoStopAim()
|
||||
{
|
||||
if (!aim_weapon)
|
||||
ResetHands();
|
||||
if(!aim_weapon->~FinishedAiming(this, aim_angle)) // return 1 means the weapon goes on doing something (e.g. start aiming) then we don't reset
|
||||
ResetHands();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue