[Scummvm-git-logs] scummvm master -> 8191740ec8412c4aa59c9dca88935539b9293193

OMGPizzaGuy noreply at scummvm.org
Fri Jan 27 02:34:02 UTC 2023


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
8191740ec8 ULTIMA8: Fix signed value loading of shape frame format. Bug #14066


Commit: 8191740ec8412c4aa59c9dca88935539b9293193
    https://github.com/scummvm/scummvm/commit/8191740ec8412c4aa59c9dca88935539b9293193
Author: Matthew Jimenez (matthew.jimenez at outlook.com)
Date: 2023-01-26T20:33:14-06:00

Commit Message:
ULTIMA8: Fix signed value loading of shape frame format. Bug #14066

Changed paths:
    engines/ultima/ultima8/graphics/raw_shape_frame.cpp


diff --git a/engines/ultima/ultima8/graphics/raw_shape_frame.cpp b/engines/ultima/ultima8/graphics/raw_shape_frame.cpp
index e447cdd2989..1a5177c4142 100644
--- a/engines/ultima/ultima8/graphics/raw_shape_frame.cpp
+++ b/engines/ultima/ultima8/graphics/raw_shape_frame.cpp
@@ -58,10 +58,10 @@ void RawShapeFrame::loadU8Format(const uint8 *data, uint32 size) {
 	stream.skip(8); // skip header
 	_compressed = stream.readByte();
 	stream.skip(1);
-	_width = stream.readUint16LE();
-	_height = stream.readUint16LE();
-	_xoff = stream.readUint16LE();
-	_yoff = stream.readUint16LE();
+	_width = stream.readSint16LE();
+	_height = stream.readSint16LE();
+	_xoff = stream.readSint16LE();
+	_yoff = stream.readSint16LE();
 
 	if (_height == 0)
 		return;




More information about the Scummvm-git-logs mailing list