Skip to content

Commit 9445b67

Browse files
committed
Perform some cleanup in FlyingPawn
1 parent ffd33cd commit 9445b67

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Unreal/Plugins/AirSim/Source/Vehicles/Multirotor/FlyingPawn.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ void AFlyingPawn::EndPlay(const EEndPlayReason::Type EndPlayReason)
4545
camera_back_center_ = nullptr;
4646
camera_bottom_center_ = nullptr;
4747

48+
pawn_events_.getActuatorSignal().disconnect_all();
49+
rotating_movements_.Empty();
50+
4851
Super::EndPlay(EndPlayReason);
4952
}
5053

0 commit comments

Comments
 (0)