1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-23 04:04:09 +01:00

Fix: Rail/road type conversion data is not populated on new game. (#13403)

This means that the rail/road type conversion that happens if NewGRFs are changed does not work the first time for a new game, only with a savegame.
This commit is contained in:
Peter Nelson
2025-01-29 21:45:16 +00:00
committed by GitHub
parent 402aaf3d11
commit bf6293a13f
9 changed files with 166 additions and 134 deletions

View File

@@ -42,6 +42,9 @@
#include "../string_func.h"
#include "../fios.h"
#include "../error.h"
#include "../newgrf_railtype.h"
#include "../newgrf_roadtype.h"
#include <atomic>
#ifdef __EMSCRIPTEN__
# include <emscripten.h>
@@ -2789,7 +2792,8 @@ extern bool LoadOldSaveGame(const std::string &file);
static void ResetSaveloadData()
{
ResetTempEngineData();
ResetLabelMaps();
ClearRailTypeLabelList();
ClearRoadTypeLabelList();
ResetOldWaypoints();
}