Skip to content

Commit

Permalink
use 'rotor_count' constant instead of hard coded '4'.
Browse files Browse the repository at this point in the history
  • Loading branch information
lovettchris committed May 3, 2017
1 parent 997dc09 commit 1c3b334
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Unreal/Plugins/AirSim/Source/FlyingPawn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ void AFlyingPawn::setupComponentReferences()
fpv_camera_ = Cast<APIPCamera>(
(UAirBlueprintLib::GetActorComponent<UChildActorComponent>(this, TEXT("LeftPIPCamera")))->GetChildActor());

for (auto i = 0; i < 4; ++i) {
for (auto i = 0; i < rotor_count; ++i) {
rotating_movements_[i] = UAirBlueprintLib::GetActorComponent<URotatingMovementComponent>(this, TEXT("Rotation") + FString::FromInt(i));
}
}
Expand Down

0 comments on commit 1c3b334

Please sign in to comment.