diff options
author | Jonathan G Rennison <j.g.rennison@gmail.com> | 2021-12-10 01:12:04 +0000 |
---|---|---|
committer | Niels Martin Hansen <nielsm@indvikleren.dk> | 2021-12-10 22:46:16 +0100 |
commit | 762b656b53680f64a1d48d8c17d18570ed7b82b1 (patch) | |
tree | 7952b2a82c684c8d5b03a8845f6b72d5070ac61b /src/saveload | |
parent | ad89601c49bc5f4e996d2afea58db17fb1b01324 (diff) | |
download | openttd-762b656b53680f64a1d48d8c17d18570ed7b82b1.tar.xz |
Fix #9740: Fix loading of gamelog change items from savegame ver >= 294
Diffstat (limited to 'src/saveload')
-rw-r--r-- | src/saveload/gamelog_sl.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/saveload/gamelog_sl.cpp b/src/saveload/gamelog_sl.cpp index 89db17424..72d3f3d85 100644 --- a/src/saveload/gamelog_sl.cpp +++ b/src/saveload/gamelog_sl.cpp @@ -328,6 +328,7 @@ public: size_t length = SlGetStructListLength(UINT32_MAX); la->change = ReallocT(la->change, length); + la->changes = (uint32)length; for (size_t i = 0; i < length; i++) { LoggedChange *lc = &la->change[i]; |