mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-05 17:57:14 +00:00
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.
This commit is contained in:
parent
0e2cf28d99
commit
f55259e3b1
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user