diff options
author | Colin Snover | 2017-12-01 10:41:37 -0600 |
---|---|---|
committer | Colin Snover | 2017-12-01 19:23:00 -0600 |
commit | 2b5605362abeb351132d7bf58d18790a8c6fabfe (patch) | |
tree | 8661b32be7fc4841bbad38f772d4e9f8590e0485 /engines/scumm | |
parent | c7989bb333146cb369af117bc84ee9a4a819697f (diff) | |
download | scummvm-rg350-2b5605362abeb351132d7bf58d18790a8c6fabfe.tar.gz scummvm-rg350-2b5605362abeb351132d7bf58d18790a8c6fabfe.tar.bz2 scummvm-rg350-2b5605362abeb351132d7bf58d18790a8c6fabfe.zip |
SCUMM: Fix signed integer overflow reading default v70HE cursor
Diffstat (limited to 'engines/scumm')
-rw-r--r-- | engines/scumm/cursor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/scumm/cursor.cpp b/engines/scumm/cursor.cpp index cdccfd48ba..ab38fa55f8 100644 --- a/engines/scumm/cursor.cpp +++ b/engines/scumm/cursor.cpp @@ -191,7 +191,7 @@ void ScummEngine_v70he::setDefaultCursor() { _cursor.height = 32; for (i = 0; i < 32; i++) { - int p = *src; + uint p = *src; for (j = 0; j < 32; j++) { switch ((p & (0x3 << 14)) >> 14) { case 1: |