From 9e8951295ca82929b69d78d0970bb7b5636ef9e6 Mon Sep 17 00:00:00 2001 From: dP Date: Tue, 11 Aug 2020 12:07:31 +0300 Subject: [PATCH] Fix town conter size in cm extra 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 c80173c99c..84746596e8 100644 --- a/src/citymania/cm_saveload.cpp +++ b/src/citymania/cm_saveload.cpp @@ -351,13 +351,13 @@ static void DecodeDataV1(BitIStream &bs) { DEBUG(sl, 0, "Invalid TownID in CB towns layout errors (%u)", town_id); continue; } - t->cm.hs_total = bs.ReadBytes(2); + t->cm.hs_total = bs.ReadBytes(4); t->cm.hs_total_prev = 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_total_prev = 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_total_prev = bs.ReadBytes(2); t->cm.hr_last_month = bs.ReadBytes(2); }