diff options
author | Max Horn | 2003-09-13 12:08:17 +0000 |
---|---|---|
committer | Max Horn | 2003-09-13 12:08:17 +0000 |
commit | f9c28dca49481528fb49d1316811b2312e28847c (patch) | |
tree | c694b5a31c939fd6586712ec81585d2e9f888e54 | |
parent | 989f3f921533e95b669054f0d13040353f4f1a15 (diff) | |
download | scummvm-rg350-f9c28dca49481528fb49d1316811b2312e28847c.tar.gz scummvm-rg350-f9c28dca49481528fb49d1316811b2312e28847c.tar.bz2 scummvm-rg350-f9c28dca49481528fb49d1316811b2312e28847c.zip |
cleanup
svn-id: r10218
-rw-r--r-- | sword2/interpreter.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sword2/interpreter.cpp b/sword2/interpreter.cpp index 9958260584..dfaaeb58e6 100644 --- a/sword2/interpreter.cpp +++ b/sword2/interpreter.cpp @@ -417,7 +417,7 @@ int RunScript ( char * scriptData , char * objectData , uint32 *offset ) Read16ip(parameter) POPOFFSTACK ( value ); DEBUG2("Pop %d into var %d",value,parameter); - *((int *)(variables+parameter)) = value; + *((int32 *)(variables+parameter)) = value; break; case CP_CALL_MCODE: // 4 Call an mcode routine @@ -518,14 +518,14 @@ int RunScript ( char * scriptData , char * objectData , uint32 *offset ) case CP_ADDNPOP_LOCAL_VAR32: // 10 Read16ip(parameter) POPOFFSTACK ( value ); - *((int *)(variables+parameter)) = *(int32 *)(variables+parameter) + value; + *((int32 *)(variables+parameter)) += value; DEBUG3("+= %d into var %d->%d",value,parameter,*(int32 *)(variables+parameter)); break; case CP_SUBNPOP_LOCAL_VAR32: // 11 Read16ip(parameter) POPOFFSTACK ( value ); - *((int *)(variables+parameter)) = *(int32 *)(variables+parameter) - value; + *((int32 *)(variables+parameter)) -= value; DEBUG3("-= %d into var %d->%d",value,parameter,*(int32 *)(variables+parameter)); break; |