Skip to content

Commit d17d1a2

Browse files
committed
Exclude airfields that have an equal number of spaces and runways.
1 parent 4895810 commit d17d1a2

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 >= m_runways.size())
475+
if (m_spaces.size() > m_runways.size() && spaceIndex >= m_runways.size())
476476
{
477477
Bool& deferred = m_spaces[spaceIndex].m_deferredRunwayReservationForTakeoff;
478478
if (forLanding)

0 commit comments

Comments
 (0)