src/newgrf_gui.cpp
branchnoai
changeset 10829 8a0ec0f0f928
parent 10645 8cbdb511a674
--- a/src/newgrf_gui.cpp	Mon Jun 02 01:46:03 2008 +0000
+++ b/src/newgrf_gui.cpp	Wed Jun 04 22:34:45 2008 +0000
@@ -15,6 +15,7 @@
 #include "core/alloc_func.hpp"
 #include "string_func.h"
 #include "gfx_func.h"
+#include "gamelog.h"
 
 #include "table/strings.h"
 #include "table/sprites.h"
@@ -564,8 +565,11 @@
 		GRFConfig *c;
 		int i = 0;
 
+		GamelogStartAction(GLAT_GRF);
+		GamelogGRFUpdate(_grfconfig, nw->list); // log GRF changes
 		CopyGRFConfigList(nw->orig_list, nw->list, false);
 		ReloadNewGRFData();
+		GamelogStopAction();
 
 		/* Show new, updated list */
 		for (c = nw->list; c != NULL && c != nw->sel; c = c->next, i++) {}