(svn r4945) Fix (r3726): make -t command line option (set starting date/year) work again
authorrubidium
Mon, 22 May 2006 10:08:23 +0000
changeset 3889 cc4a8556c19d
parent 3888 7a781a439c30
child 3890 f8f13a91446a
(svn r4945) Fix (r3726): make -t command line option (set starting date/year) work again
openttd.c
--- a/openttd.c	Mon May 22 09:59:09 2006 +0000
+++ b/openttd.c	Mon May 22 10:08:23 2006 +0000
@@ -46,6 +46,7 @@
 #include "waypoint.h"
 #include "ai/ai.h"
 #include "train.h"
+#include "settings.h"
 
 #include <stdarg.h>
 
@@ -406,7 +407,7 @@
 	if (sounddriver[0]) ttd_strlcpy(_ini_sounddriver, sounddriver, sizeof(_ini_sounddriver));
 	if (videodriver[0]) ttd_strlcpy(_ini_videodriver, videodriver, sizeof(_ini_videodriver));
 	if (resolution[0]) { _cur_resolution[0] = resolution[0]; _cur_resolution[1] = resolution[1]; }
-	if (startdate != (uint)-1) _patches.starting_date = startdate;
+	if (startdate != (uint)-1) _patches_newgame.starting_date = startdate;
 
 	if (_dedicated_forks && !dedicated) _dedicated_forks = false;