mirror of https://github.com/OpenTTD/OpenTTD
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.pull/7388/head
parent
43caef2968
commit
fe13fadcfb
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue