From 89e7c8d6322df0bf67ea587d52c9534eab2e17ba Mon Sep 17 00:00:00 2001 From: dP Date: Tue, 11 Aug 2020 20:37:24 +0300 Subject: [PATCH] Fix total layout counter size in cm data --- src/citymania/cm_saveload.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/citymania/cm_saveload.cpp b/src/citymania/cm_saveload.cpp index b4d69f4b9f..a64cabc145 100644 --- a/src/citymania/cm_saveload.cpp +++ b/src/citymania/cm_saveload.cpp @@ -55,13 +55,13 @@ static void DecodeTowns(BitIStream &bs) t->cm.houses_reconstructed_last_month = bs.ReadBytes(2); t->cm.houses_demolished_this_month = bs.ReadBytes(2); t->cm.houses_demolished_last_month = bs.ReadBytes(2); - t->cm.hs_total = bs.ReadBytes(2); + t->cm.hs_total = bs.ReadBytes(4); t->cm.hs_this_month = bs.ReadBytes(2); t->cm.hs_last_month = bs.ReadBytes(2); - t->cm.cs_total = bs.ReadBytes(2); + t->cm.cs_total = bs.ReadBytes(4); t->cm.cs_this_month = bs.ReadBytes(2); t->cm.cs_last_month = bs.ReadBytes(2); - t->cm.hr_total = bs.ReadBytes(2); + t->cm.hr_total = bs.ReadBytes(4); t->cm.hr_this_month = bs.ReadBytes(2); t->cm.hr_last_month = bs.ReadBytes(2); }