mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-28 08:59:09 +00:00
Codefix: Compile warning with newer C++ compiler on MinGW. (#12689)
> template-id not allowed for constructor in C++20
This commit is contained in:
@@ -221,7 +221,7 @@ struct SpecializedStation : public BaseStation {
|
||||
* Set station type correctly
|
||||
* @param tile The base tile of the station.
|
||||
*/
|
||||
inline SpecializedStation<T, Tis_waypoint>(TileIndex tile) :
|
||||
inline SpecializedStation(TileIndex tile) :
|
||||
BaseStation(tile)
|
||||
{
|
||||
this->facilities = EXPECTED_FACIL;
|
||||
|
@@ -1100,7 +1100,7 @@ struct SpecializedVehicle : public Vehicle {
|
||||
/**
|
||||
* Set vehicle type correctly
|
||||
*/
|
||||
inline SpecializedVehicle<T, Type>() : Vehicle(Type)
|
||||
inline SpecializedVehicle() : Vehicle(Type)
|
||||
{
|
||||
this->sprite_cache.sprite_seq.count = 1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user