From f55259e3b103d5aa966b00fb5c574d84a4f399c0 Mon Sep 17 00:00:00 2001 From: Thierry Crozat Date: Sat, 5 Oct 2013 00:19:31 +0100 Subject: SWORD25: Fix regression in persistence code The regression was introduced by commit e6ba26ff0d which wrote coordinates of a rect as unsigned int when they were before written as signed int. Since the load code was not modified it still expected signed int. They are now again written as signed int. Any gamed saved between commit e6ba26ff0d and this commit will therefore be corrupted. --- engines/sword25/math/region.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'engines') diff --git a/engines/sword25/math/region.cpp b/engines/sword25/math/region.cpp index b6ebaee23f..db888e432a 100644 --- a/engines/sword25/math/region.cpp +++ b/engines/sword25/math/region.cpp @@ -311,10 +311,10 @@ bool Region::persist(OutputPersistenceBlock &writer) { ++It; } - writer.write((uint32)_boundingBox.left); - writer.write((uint32)_boundingBox.top); - writer.write((uint32)_boundingBox.right); - writer.write((uint32)_boundingBox.bottom); + writer.write((int32)_boundingBox.left); + writer.write((int32)_boundingBox.top); + writer.write((int32)_boundingBox.right); + writer.write((int32)_boundingBox.bottom); return Result; } -- cgit v1.2.3