aboutsummaryrefslogtreecommitdiff
path: root/engines/hopkins/menu.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2012-10-11 22:58:04 +1100
committerPaul Gilbert2012-10-11 22:58:04 +1100
commit721b619398af28037cc595300052af430b9b31a5 (patch)
treeed64118f048a6ca7998fb6b5d0abd02c5f1a1c3e /engines/hopkins/menu.cpp
parentd8dd04130a3ea4018f26467f86a9e0bebe24bf5c (diff)
downloadscummvm-rg350-721b619398af28037cc595300052af430b9b31a5.tar.gz
scummvm-rg350-721b619398af28037cc595300052af430b9b31a5.tar.bz2
scummvm-rg350-721b619398af28037cc595300052af430b9b31a5.zip
HOPKINS: Added explicit int16 cast to all READ_LE_UINT16 accesses.
I've already previously fixed two initialisatoin errors for data reading that expected int's to be 16 bits and signed, so adding the explicit cast everywhere will likely fix other similiar issues.
Diffstat (limited to 'engines/hopkins/menu.cpp')
-rw-r--r--engines/hopkins/menu.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/hopkins/menu.cpp b/engines/hopkins/menu.cpp
index 23baec188e..fcebb2ce8b 100644
--- a/engines/hopkins/menu.cpp
+++ b/engines/hopkins/menu.cpp
@@ -290,7 +290,7 @@ void MenuManager::CHARGE_PARTIE() {
v4 = &_vm->_globals.SAUVEGARDE->data[svField1300];
v5 = 0;
do {
- _vm->_globals.INVENTAIRE[v5] = READ_LE_UINT16(v4 + 2 * v5);
+ _vm->_globals.INVENTAIRE[v5] = (int16)READ_LE_UINT16(v4 + 2 * v5);
++v5;
} while (v5 <= 34);