aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk
diff options
context:
space:
mode:
authorAlyssa Milburn2010-12-05 22:10:00 +0000
committerAlyssa Milburn2010-12-05 22:10:00 +0000
commit899f6a9e8896a2ce21bc64327495cbefa57a7cc4 (patch)
tree7370faf266263fb39a3f97c571d49b720b88a4ad /engines/mohawk
parentd3719a81927a666e5065cc56c9e882f2cc351e69 (diff)
downloadscummvm-rg350-899f6a9e8896a2ce21bc64327495cbefa57a7cc4.tar.gz
scummvm-rg350-899f6a9e8896a2ce21bc64327495cbefa57a7cc4.tar.bz2
scummvm-rg350-899f6a9e8896a2ce21bc64327495cbefa57a7cc4.zip
MOHAWK: remove 'internal error' errors
svn-id: r54790
Diffstat (limited to 'engines/mohawk')
-rw-r--r--engines/mohawk/livingbooks.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/engines/mohawk/livingbooks.cpp b/engines/mohawk/livingbooks.cpp
index a8cdc661a3..bfec10e9a0 100644
--- a/engines/mohawk/livingbooks.cpp
+++ b/engines/mohawk/livingbooks.cpp
@@ -2144,8 +2144,6 @@ bool LBValue::operator==(const LBValue &x) const {
case kLBValueInteger:
return integer == x.integer;
}
-
- error("internal error in LBValue");
}
bool LBValue::operator!=(const LBValue &x) const {
@@ -2307,8 +2305,6 @@ LBValue LBItem::parseValue(const Common::String &source, uint &pos) {
value.integer += nextValue.integer;
else if (postOp == "-")
value.integer -= nextValue.integer;
- else
- error("internal error in parseValue");
}
}
@@ -2350,8 +2346,6 @@ void LBItem::runCommand(const Common::String &command) {
_vm->_variables[varname].integer++;
else if (op == "--")
_vm->_variables[varname].integer--;
- else
- error("internal error in runCommand");
}
}
}
@@ -2403,7 +2397,7 @@ bool LBItem::checkCondition(const Common::String &condition) {
else if (op == "<=")
return (value1.integer <= value2.integer);
- error("internal error in checkCondition");
+ return false; // unreachable
}
LBSoundItem::LBSoundItem(MohawkEngine_LivingBooks *vm, Common::Rect rect) : LBItem(vm, rect) {