aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/inter_v6.cpp
diff options
context:
space:
mode:
authorSven Hesse2009-08-24 22:37:09 +0000
committerSven Hesse2009-08-24 22:37:09 +0000
commit081fa85b140b3175f035a74a4fcced59539fea1d (patch)
tree6f877c49ee4ba55ab3c5fa0f53251dabf08e18bb /engines/gob/inter_v6.cpp
parentcb202830267b52db4032abccf8e8f9af7c6dd245 (diff)
downloadscummvm-rg350-081fa85b140b3175f035a74a4fcced59539fea1d.tar.gz
scummvm-rg350-081fa85b140b3175f035a74a4fcced59539fea1d.tar.bz2
scummvm-rg350-081fa85b140b3175f035a74a4fcced59539fea1d.zip
Playtoons uses a variable space that exceeds 32767 bytes. Changing a few variables to unsigned makes the construction mode not crash anymore (though it now hangs in a loop)
svn-id: r43713
Diffstat (limited to 'engines/gob/inter_v6.cpp')
-rw-r--r--engines/gob/inter_v6.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/gob/inter_v6.cpp b/engines/gob/inter_v6.cpp
index a0c6a0ad1d..98747de099 100644
--- a/engines/gob/inter_v6.cpp
+++ b/engines/gob/inter_v6.cpp
@@ -274,7 +274,7 @@ bool Inter_v6::o6_loadCursor(OpFuncParams &params) {
bool Inter_v6::o6_assign(OpFuncParams &params) {
uint16 size, destType;
- int16 dest = _vm->_game->_script->readVarIndex(&size, &destType);
+ uint16 dest = _vm->_game->_script->readVarIndex(&size, &destType);
if (size != 0) {
int16 src;
@@ -284,7 +284,7 @@ bool Inter_v6::o6_assign(OpFuncParams &params) {
src = _vm->_game->_script->readVarIndex(&size, 0);
memcpy(_vm->_inter->_variables->getAddressOff8(dest),
- _vm->_inter->_variables->getAddressOff8(src), size * 4);
+ _vm->_inter->_variables->getAddressOff8((uint16) src), size * 4);
_vm->_game->_script->pop();