diff options
-rw-r--r-- | engine.c | 2 | ||||
-rw-r--r-- | engine.h | 2 | ||||
-rw-r--r-- | newgrf.c | 1 | ||||
-rw-r--r-- | openttd.c | 1 |
4 files changed, 3 insertions, 3 deletions
@@ -811,7 +811,7 @@ void SetCustomEngineName(EngineID engine, const char *name) _engine_custom_names[engine] = strdup(name); } -void UnInitNewgrEngines(void) +void UnloadCustomEngineNames(void) { char **i; for (i = _engine_custom_names; i != endof(_engine_custom_names); i++) { @@ -212,7 +212,6 @@ void LoadCustomEngineNames(void); void DeleteCustomEngineNames(void); bool IsEngineBuildable(uint engine, byte type); -void UnInitNewgrEngines(void); enum { NUM_NORMAL_RAIL_ENGINES = 54, @@ -283,5 +282,6 @@ static inline const RoadVehicleInfo* RoadVehInfo(EngineID e) void UnloadWagonOverrides(void); void UnloadCustomEngineSprites(void); +void UnloadCustomEngineNames(void); #endif /* ENGINE_H */ @@ -2455,6 +2455,7 @@ static void ResetNewGRFData(void) // Unload sprite group data UnloadWagonOverrides(); UnloadCustomEngineSprites(); + UnloadCustomEngineNames(); // Reset price base data ResetPriceBaseMultipliers(); @@ -255,7 +255,6 @@ static void UnInitializeDynamicVariables(void) static void UnInitializeGame(void) { UnInitWindowSystem(); - UnInitNewgrEngines(); free(_config_file); } |