Changeset - r23685:85b8ea546356
[Not reviewed]
master
0 1 0
Charles Pigott - 5 years ago 2019-04-26 18:09:55
charlespigott@googlemail.com
Fix: Crash when attempting to load old save game with GRFs set

GroupStatistics pool was not initialised before trying to delete vehicles (specifically, trams with no tram track)
1 file changed with 1 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/saveload/afterload.cpp
Show inline comments
 
@@ -1900,6 +1900,7 @@ bool AfterLoadGame()
 
	}
 

	
 
	if (IsSavegameVersionBefore(SLV_62)) {
 
		GroupStatistics::UpdateAfterLoad(); // Ensure statistics pool is initialised before trying to delete vehicles
 
		/* Remove all trams from savegames without tram support.
 
		 * There would be trams without tram track under causing crashes sooner or later. */
 
		RoadVehicle *v;
0 comments (0 inline, 0 general)