Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
cancel current use action if pilot is removed (#1954)
- Loading branch information
Showing
with
3 additions
and
0 deletions.
-
+3
−0
planet/Objects.ocd/Vehicles.ocd/Airplane.ocd/Script.c
|
@@ -1172,6 +1172,9 @@ public func PlaneDismount(object clonk) |
|
|
clonk->StopAnimation(clonk->GetRootAnimation(15)); |
|
|
DetachMesh(clonkmesh); |
|
|
clonkmesh = nil; |
|
|
// Ensure the current use is cancelled. |
|
|
if (clonk == pilot) |
|
|
ContainedUseCancel(pilot, 0, 0); |
|
|
pilot = nil; |
|
|
CancelFlight(); |
|
|
return true; |
|
|