1
0
Fork 0

Fix: Compile failure with newer C++ compiler on MinGW.

> template-id not allowed for constructor in C++20
pull/12689/head
Peter Nelson 2024-05-16 08:44:24 +01:00
parent 26113e3622
commit 58fe6a4c8b
No known key found for this signature in database
GPG Key ID: 8EF8F0A467DF75ED
2 changed files with 2 additions and 2 deletions

View File

@ -221,7 +221,7 @@ struct SpecializedStation : public BaseStation {
* Set station type correctly * Set station type correctly
* @param tile The base tile of the station. * @param tile The base tile of the station.
*/ */
inline SpecializedStation<T, Tis_waypoint>(TileIndex tile) : inline SpecializedStation(TileIndex tile) :
BaseStation(tile) BaseStation(tile)
{ {
this->facilities = EXPECTED_FACIL; this->facilities = EXPECTED_FACIL;

View File

@ -1100,7 +1100,7 @@ struct SpecializedVehicle : public Vehicle {
/** /**
* Set vehicle type correctly * Set vehicle type correctly
*/ */
inline SpecializedVehicle<T, Type>() : Vehicle(Type) inline SpecializedVehicle() : Vehicle(Type)
{ {
this->sprite_cache.sprite_seq.count = 1; this->sprite_cache.sprite_seq.count = 1;
} }