Changeset - r26086:2c4c2444c4e3
[Not reviewed]
master
0 1 0
Jonathan G Rennison - 3 years ago 2021-12-10 01:12:04
j.g.rennison@gmail.com
Fix #9740: Fix loading of gamelog change items from savegame ver >= 294
1 file changed with 1 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/saveload/gamelog_sl.cpp
Show inline comments
 
@@ -325,12 +325,13 @@ public:
 
			}
 
			return;
 
		}
 

	
 
		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];
 
			memset(lc, 0, sizeof(*lc));
 

	
 
			lc->ct = (GamelogChangeType)SlReadByte();
0 comments (0 inline, 0 general)