From 41457acd470678176a13921f80618870a2099e3d Mon Sep 17 00:00:00 2001 From: smatz Date: Sun, 15 Jun 2008 13:52:51 +0000 Subject: (svn r13520) -Fix (r13375): pointer has to be valid before it can be loaded to (SLE_STR) --- src/gamelog.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gamelog.cpp b/src/gamelog.cpp index aba915ea4..11b651851 100644 --- a/src/gamelog.cpp +++ b/src/gamelog.cpp @@ -754,6 +754,8 @@ static void Load_GLOG() 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); -- cgit v1.2.3-70-g09d2