aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorAndrew Kurushin2010-10-21 22:35:57 +0000
committerAndrew Kurushin2010-10-21 22:35:57 +0000
commit521eb95aea5160c08965f568518f51513b1a74ac (patch)
tree2bdcae291b6ddf21b67effc058241efc32174028 /engines
parent8b72f49460efa2fde822467ce049e5e15444084a (diff)
downloadscummvm-rg350-521eb95aea5160c08965f568518f51513b1a74ac.tar.gz
scummvm-rg350-521eb95aea5160c08965f568518f51513b1a74ac.tar.bz2
scummvm-rg350-521eb95aea5160c08965f568518f51513b1a74ac.zip
SAGA: fix gcc warn
svn-id: r53679
Diffstat (limited to 'engines')
-rw-r--r--engines/saga/script.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/saga/script.cpp b/engines/saga/script.cpp
index 45f10f35c3..5d3b90005c 100644
--- a/engines/saga/script.cpp
+++ b/engines/saga/script.cpp
@@ -1059,7 +1059,7 @@ void Script::loadModule(uint scriptModuleNumber) {
size_t resourceLength;
// Validate script number
- if ((scriptModuleNumber < 0) || (scriptModuleNumber >= _modules.size())) {
+ if (scriptModuleNumber >= _modules.size()) {
error("Script::loadScript() Invalid script module number");
}