diff options
author | Patric Stout <truebrain@openttd.org> | 2019-03-17 21:50:32 +0100 |
---|---|---|
committer | Patric Stout <truebrain@openttd.org> | 2019-03-18 20:57:32 +0100 |
commit | fe13fadcfb2b00738faeae532ed4308875e3fcb5 (patch) | |
tree | 8b41d1a7c5f0f26181692c421571f5535cfee2e0 /src | |
parent | 43caef2968bccdab63896e816ee86f9d70f3c769 (diff) | |
download | openttd-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')
-rw-r--r-- | src/aircraft_cmd.cpp | 1 |
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 |