From 7faa279250db4e796ebd8468c1f37db5c3a3c402 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Wed, 14 Apr 2021 19:36:10 +0100 Subject: [PATCH] Fix 26a123b7: Wrong variable size in VENC chunk saver --- src/saveload/vehicle_sl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/saveload/vehicle_sl.cpp b/src/saveload/vehicle_sl.cpp index e3574e0c46..4cf9ba297b 100644 --- a/src/saveload/vehicle_sl.cpp +++ b/src/saveload/vehicle_sl.cpp @@ -1216,7 +1216,7 @@ void Save_VENC() write_gv_cache(t->gcache); SlWriteByte(t->tcache.cached_tilt); SlWriteByte(t->tcache.cached_num_engines); - SlWriteByte(t->tcache.cached_centre_mass); + SlWriteUint16(t->tcache.cached_centre_mass); SlWriteUint16(t->tcache.cached_veh_weight); SlWriteUint16(t->tcache.cached_uncapped_decel); SlWriteByte(t->tcache.cached_deceleration);