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:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user