forked from Mirrors/openclonk
fix possible script runtime error in aim manager library
parent
a89af833c7
commit
8d56434fc5
|
@ -254,10 +254,10 @@ 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
|
||||
// Return true means the weapon goes on doing something (e.g. start aiming) then we don't reset.
|
||||
if (!aim_weapon || !aim_weapon->~FinishedAiming(this, aim_angle))
|
||||
ResetHands();
|
||||
return;
|
||||
}
|
||||
|
||||
public func StartShoot(object weapon)
|
||||
|
|
Loading…
Reference in New Issue