summaryrefslogtreecommitdiff
path: root/src/aircraft_cmd.cpp
diff options
context:
space:
mode:
authorPatric Stout <truebrain@openttd.org>2019-03-17 21:50:32 +0100
committerPatric Stout <truebrain@openttd.org>2019-03-18 20:57:32 +0100
commitfe13fadcfb2b00738faeae532ed4308875e3fcb5 (patch)
tree8b41d1a7c5f0f26181692c421571f5535cfee2e0 /src/aircraft_cmd.cpp
parent43caef2968bccdab63896e816ee86f9d70f3c769 (diff)
downloadopenttd-fe13fadcfb2b00738faeae532ed4308875e3fcb5.tar.xz
Codechange: fix Intel C++ Compiler linking issues.
GetAircraftFlightLevel<Aircraft> is only used in static functions inside aircraft_cmd.cpp. With GCC, Clang and MSVC this is not an issue, but on ICC fails linking, because it doesn't find this version of this template. Possibly these two pieces of information are linked. Explicit defining the function fixes the issue.
Diffstat (limited to 'src/aircraft_cmd.cpp')
-rw-r--r--src/aircraft_cmd.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/aircraft_cmd.cpp b/src/aircraft_cmd.cpp
index b08cb188d..99c86d6e1 100644
--- a/src/aircraft_cmd.cpp
+++ b/src/aircraft_cmd.cpp
@@ -783,6 +783,7 @@ int GetAircraftFlightLevel(T *v, bool takeoff)
}
template int GetAircraftFlightLevel(DisasterVehicle *v, bool takeoff);
+template int GetAircraftFlightLevel(Aircraft *v, bool takeoff);
/**
* Find the entry point to an airport depending on direction which