Skip to content

Commit

Permalink
Codefix: Compile warning with newer C++ compiler on MinGW. (#12689)
Browse files Browse the repository at this point in the history
> template-id not allowed for constructor in C++20
  • Loading branch information
PeterN committed May 16, 2024
1 parent 26113e3 commit 4940b6f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/base_station_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/vehicle_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 4940b6f

Please sign in to comment.