aboutsummaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorCameron Cawley2019-12-31 11:49:58 +0000
committerEugene Sandulenko2019-12-31 19:19:21 +0100
commitff3f7170f8c218afac0e564e1c65bbd8496eb079 (patch)
treea8d24e02e3f01b6a5e260cd51def083e42e86f6e /graphics
parentfc35b122c1529b89a730dac836d25bd7ba3d415b (diff)
downloadscummvm-rg350-ff3f7170f8c218afac0e564e1c65bbd8496eb079.tar.gz
scummvm-rg350-ff3f7170f8c218afac0e564e1c65bbd8496eb079.tar.bz2
scummvm-rg350-ff3f7170f8c218afac0e564e1c65bbd8496eb079.zip
GRAPHICS: Fix loading NE cursors
Diffstat (limited to 'graphics')
-rw-r--r--graphics/wincursor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/graphics/wincursor.cpp b/graphics/wincursor.cpp
index 2e083e347d..13d9bebfba 100644
--- a/graphics/wincursor.cpp
+++ b/graphics/wincursor.cpp
@@ -250,7 +250,7 @@ WinCursorGroup *WinCursorGroup::createCursorGroup(Common::NEResources &exe, cons
stream->skip(4);
uint32 cursorCount = stream->readUint16LE();
- if ((uint32)stream->size() < (6 + cursorCount * 16))
+ if ((uint32)stream->size() < (6 + cursorCount * 14))
return 0;
WinCursorGroup *group = new WinCursorGroup();
@@ -274,7 +274,7 @@ WinCursorGroup *WinCursorGroup::createCursorGroup(Common::NEResources &exe, cons
}
stream->readUint32LE(); // data size
- uint32 cursorId = stream->readUint32LE();
+ uint32 cursorId = stream->readUint16LE();
Common::ScopedPtr<Common::SeekableReadStream> cursorStream(exe.getResource(Common::kWinCursor, cursorId));
if (!cursorStream) {