(svn r12946) -Fix: do not allocate the OldNames table when creating a new game as it won't be used anyway.
authorrubidium
Sun, 04 May 2008 22:19:44 +0000
changeset 9087 263ff8feb85a
parent 9086 4887c2e470e4
child 9088 f0a60d7af636
(svn r12946) -Fix: do not allocate the OldNames table when creating a new game as it won't be used anyway.
src/misc.cpp
--- a/src/misc.cpp	Sun May 04 22:13:47 2008 +0000
+++ b/src/misc.cpp	Sun May 04 22:19:44 2008 +0000
@@ -68,6 +68,7 @@
 
 	if ((mode & IG_DATE_RESET) == IG_DATE_RESET) {
 		SetDate(ConvertYMDToDate(_patches.starting_year, 0, 1));
+		InitializeOldNames();
 	}
 
 	InitializeEngines();
@@ -92,7 +93,6 @@
 	InitializeIndustries();
 	InitializeBuildingCounts();
 
-	InitializeOldNames();
 	InitializeVehiclesGuiList();
 	InitializeTrains();
 	InitializeNPF();