[Scummvm-git-logs] scummvm master -> 0549c99040a6df36e54647de1a6d42cbd4c3d545

AndywinXp noreply at scummvm.org
Mon Sep 25 19:50:03 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:
0549c99040 SWORD1: Fix cast from int16 to int32 for 4-bytes value


Commit: 0549c99040a6df36e54647de1a6d42cbd4c3d545
    https://github.com/scummvm/scummvm/commit/0549c99040a6df36e54647de1a6d42cbd4c3d545
Author: AndywinXp (andywinxp at gmail.com)
Date: 2023-09-25T21:49:40+02:00

Commit Message:
SWORD1: Fix cast from int16 to int32 for 4-bytes value

Sorry, it slipped out.

Changed paths:
    engines/sword1/logic.cpp


diff --git a/engines/sword1/logic.cpp b/engines/sword1/logic.cpp
index d45c84157e7..4abaa6750b4 100644
--- a/engines/sword1/logic.cpp
+++ b/engines/sword1/logic.cpp
@@ -1886,7 +1886,7 @@ void Logic::plotRouteGrid(Object *megaObject) {
 		_router->_bars[j].ymax = (int16)_resMan->readUint16(fPolygrid); fPolygrid += 2;
 		_router->_bars[j].dx   = (int16)_resMan->readUint16(fPolygrid); fPolygrid += 2;
 		_router->_bars[j].dy   = (int16)_resMan->readUint16(fPolygrid); fPolygrid += 2;
-		_router->_bars[j].co   = (int16)_resMan->readUint32(fPolygrid); fPolygrid += 4;
+		_router->_bars[j].co   = (int32)_resMan->readUint32(fPolygrid); fPolygrid += 4;
 	}
 
 	// Parse the node points...




More information about the Scummvm-git-logs mailing list