mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 14:27:16 +00:00
(svn r13520) -Fix (r13375): pointer has to be valid before it can be loaded to (SLE_STR)
This commit is contained in:
parent
237a6f554a
commit
704c9be0b8
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user