src/gamelog.cpp
branchNewGRF_ports
changeset 10994 cd9968b6f96b
parent 10991 d8811e327d12
--- a/src/gamelog.cpp	Tue Jun 17 10:32:49 2008 +0000
+++ b/src/gamelog.cpp	Tue Jun 17 13:22:13 2008 +0000
@@ -754,6 +754,8 @@
 			la->change = ReallocT(la->change, la->changes + 1);
 
 			LoggedChange *lc = &la->change[la->changes++];
+			/* for SLE_STR, pointer has to be valid! so make it NULL */
+			memset(lc, 0, sizeof(*lc));
 			lc->ct = ct;
 
 			assert((uint)ct < GLCT_END);