diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/simon/vga.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/simon/vga.cpp b/engines/simon/vga.cpp index 188e36d68d..6d83508491 100644 --- a/engines/simon/vga.cpp +++ b/engines/simon/vga.cpp @@ -1862,7 +1862,8 @@ void SimonEngine::vc48_setPathFinder() { int16 x1, y1, x2, y2; uint pos = 0; - while (vsp->x >= readUint16Wrapper(p + 2)) { + x = vsp->x; + while (x >= (int16)readUint16Wrapper(p + 2)) { p += 2; pos++; } @@ -2426,7 +2427,7 @@ void SimonEngine::vc79_computePosNum() { uint pos = 0; int16 y = _variableArrayPtr[16]; - while (y >= readUint16Wrapper(p + 1)) { + while (y >= (int16)readUint16Wrapper(p + 1)) { p += 2; pos++; } |