From c8c2da9448272caebd5ac554fdce19851265e62e Mon Sep 17 00:00:00 2001 From: James Turner Date: Sat, 11 Apr 2015 21:59:01 +0100 Subject: [PATCH] Fix a clang warning. --- src/Airports/dynamics.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Airports/dynamics.cxx b/src/Airports/dynamics.cxx index 5916c68b0..5d5ed0557 100644 --- a/src/Airports/dynamics.cxx +++ b/src/Airports/dynamics.cxx @@ -298,7 +298,7 @@ bool FGAirportDynamics::innerGetActiveRunway(const string & trafficType, RunwayGroup *currRunwayGroup = 0; int nrActiveRunways = 0; time_t dayStart = fgGetLong("/sim/time/utc/day-seconds"); - if ((abs((long) (dayStart - lastUpdate)) > 600) + if ((std::abs((long) (dayStart - lastUpdate)) > 600) || trafficType != prevTrafficType) { landing.clear(); takeoff.clear(); -- 2.39.5