aboutsummaryrefslogtreecommitdiff
path: root/engines/sword2
diff options
context:
space:
mode:
authorFilippos Karapetis2009-09-24 10:15:50 +0000
committerFilippos Karapetis2009-09-24 10:15:50 +0000
commit6b79910bcb5d70a116a1ff2cc3e8b011734ecb70 (patch)
tree2f6d9047b07dba0d93170a4c99bd7d28167d313d /engines/sword2
parent16d7d9ba2375af7414fa95f9f9d3927e38e5b759 (diff)
downloadscummvm-rg350-6b79910bcb5d70a116a1ff2cc3e8b011734ecb70.tar.gz
scummvm-rg350-6b79910bcb5d70a116a1ff2cc3e8b011734ecb70.tar.bz2
scummvm-rg350-6b79910bcb5d70a116a1ff2cc3e8b011734ecb70.zip
Fixed some more warnings about unreachable code
svn-id: r44300
Diffstat (limited to 'engines/sword2')
-rw-r--r--engines/sword2/interpreter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sword2/interpreter.cpp b/engines/sword2/interpreter.cpp
index 13d42df74f..b48e92acb6 100644
--- a/engines/sword2/interpreter.cpp
+++ b/engines/sword2/interpreter.cpp
@@ -325,7 +325,7 @@ int Logic::runScript2(byte *scriptData, byte *objectData, byte *offsetPtr) {
if (READ_LE_UINT32(checksumBlock) != 12345678) {
error("Invalid script in object %s", header.name);
- return 0;
+ //return 0;
}
int32 codeLen = READ_LE_UINT32(checksumBlock + 4);
@@ -754,7 +754,7 @@ int Logic::runScript2(byte *scriptData, byte *objectData, byte *offsetPtr) {
break;
default:
error("Invalid script command %d", curCommand);
- return 3;
+ //return 3;
}
}