aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorstrangerke2011-05-22 02:31:08 +0200
committerstrangerke2011-05-22 02:31:08 +0200
commit9cbc36069358359724a7ecc7bdb3d553b32ee86d (patch)
treee587be8674cbbd2f21a47bc3ce492f4999fdbeee /engines
parent0da3f8d8a5ecfef54d3580ae5db6a80f6ca2b77a (diff)
downloadscummvm-rg350-9cbc36069358359724a7ecc7bdb3d553b32ee86d.tar.gz
scummvm-rg350-9cbc36069358359724a7ecc7bdb3d553b32ee86d.tar.bz2
scummvm-rg350-9cbc36069358359724a7ecc7bdb3d553b32ee86d.zip
TSAGE: Fix bug "Scene 2100: Examining the middle console triggers an assertion: "./engines/tsage/globals.h:84: bool tSage::Globals::getFlag(int) const: Assertion `(flagNum > 0) && (flagNum < 256)' failed.""
Diffstat (limited to 'engines')
-rw-r--r--engines/tsage/globals.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/tsage/globals.h b/engines/tsage/globals.h
index bec05a3c9a..6b3df587b6 100644
--- a/engines/tsage/globals.h
+++ b/engines/tsage/globals.h
@@ -73,15 +73,15 @@ public:
void reset();
void setFlag(int flagNum) {
- assert((flagNum > 0) && (flagNum < MAX_FLAGS));
+ assert((flagNum >= 0) && (flagNum < MAX_FLAGS));
_flags[flagNum] = true;
}
void clearFlag(int flagNum) {
- assert((flagNum > 0) && (flagNum < MAX_FLAGS));
+ assert((flagNum >= 0) && (flagNum < MAX_FLAGS));
_flags[flagNum] = false;
}
bool getFlag(int flagNum) const {
- assert((flagNum > 0) && (flagNum < MAX_FLAGS));
+ assert((flagNum >= 0) && (flagNum < MAX_FLAGS));
return _flags[flagNum];
}