File: 0001-Codefix-Compilation-with-GCC-15-due-to-missing-CRTP-.patch

package info (click to toggle)
openttd 14.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 54,840 kB
  • sloc: cpp: 286,269; ansic: 16,810; awk: 217; javascript: 86; makefile: 43; sh: 28; xml: 27
file content (18 lines) | stat: -rw-r--r-- 891 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Origin: upstream,https://github.com/OpenTTD/OpenTTD/commit/db36e61807955c896267d6585de0577efd30465d
Description: Codefix: Compilation with GCC 15 due to missing CRTP usage (#12876)
diff --git a/src/pathfinder/yapf/yapf_road.cpp b/src/pathfinder/yapf/yapf_road.cpp
index 41102c2e15..6a1378b443 100644
--- a/src/pathfinder/yapf/yapf_road.cpp
+++ b/src/pathfinder/yapf/yapf_road.cpp
@@ -462,7 +462,7 @@ public:
 		/* set origin (tile, trackdir) */
 		TileIndex src_tile = v->tile;
 		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)
 			 * how should we handle that situation? */
 			return false;
-- 
2.30.2