Skip to content

Commit 4895810

Browse files
committed
Use runway count to determine which space indices are relevant.
1 parent 07c63e7 commit 4895810

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Behavior/ParkingPlaceBehavior.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ void ParkingPlaceBehavior::transferRunwayReservationToNextInLineForTakeoff(Objec
472472
//-------------------------------------------------------------------------------------------------
473473
Bool ParkingPlaceBehavior::deferUnsequencedRunwayReservationForTakeoff(UnsignedInt spaceIndex, Bool forLanding)
474474
{
475-
if (spaceIndex == 2 || spaceIndex == 3)
475+
if (spaceIndex >= m_runways.size())
476476
{
477477
Bool& deferred = m_spaces[spaceIndex].m_deferredRunwayReservationForTakeoff;
478478
if (forLanding)

0 commit comments

Comments
 (0)