mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-11 13:10:45 +00:00
Codefix: Compilation with GCC 15 due to missing CRTP usage (#12876)
This commit is contained in:
parent
b2faa14ab5
commit
db36e61807
@ -470,7 +470,7 @@ public:
|
|||||||
/* set origin (tile, trackdir) */
|
/* set origin (tile, trackdir) */
|
||||||
TileIndex src_tile = v->tile;
|
TileIndex src_tile = v->tile;
|
||||||
Trackdir src_td = v->GetVehicleTrackdir();
|
Trackdir src_td = v->GetVehicleTrackdir();
|
||||||
if (!HasTrackdir(GetTrackdirBitsForRoad(src_tile, this->IsTram() ? RTT_TRAM : RTT_ROAD), src_td)) {
|
if (!HasTrackdir(GetTrackdirBitsForRoad(src_tile, Yapf().IsTram() ? RTT_TRAM : RTT_ROAD), src_td)) {
|
||||||
/* sometimes the roadveh is not on the road (it resides on non-existing track)
|
/* sometimes the roadveh is not on the road (it resides on non-existing track)
|
||||||
* how should we handle that situation? */
|
* how should we handle that situation? */
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user