aboutsummaryrefslogtreecommitdiff
path: root/script.cpp
diff options
context:
space:
mode:
authorMax Horn2002-05-05 18:10:29 +0000
committerMax Horn2002-05-05 18:10:29 +0000
commitff376ea8a590f8afbc521eb7cac0a54c2acabc3b (patch)
treeaaeabb72a4c029cc446b0653f4409a80d38113eb /script.cpp
parentf412e7bb575ad56de201356d4851e9d7096062ef (diff)
downloadscummvm-rg350-ff376ea8a590f8afbc521eb7cac0a54c2acabc3b.tar.gz
scummvm-rg350-ff376ea8a590f8afbc521eb7cac0a54c2acabc3b.tar.bz2
scummvm-rg350-ff376ea8a590f8afbc521eb7cac0a54c2acabc3b.zip
fixed some warnings
svn-id: r4204
Diffstat (limited to 'script.cpp')
-rw-r--r--script.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/script.cpp b/script.cpp
index fffcd93081..d9388b42e7 100644
--- a/script.cpp
+++ b/script.cpp
@@ -162,6 +162,7 @@ int Scumm::getScriptSlot()
return i;
}
error("Too many scripts running, %d max", NUM_SCRIPT_SLOT);
+ return -1;
}
/* Run script 'script' nested - eg, within the parent script.*/
@@ -350,6 +351,7 @@ int Scumm::readVar(uint var)
}
error("Illegal varbits (r)");
+ return -1;
}
void Scumm::writeVar(uint var, int value)
@@ -1055,6 +1057,7 @@ int Scumm::getArrayId()
return i;
}
error("Out of array pointers, %d max", _numArray);
+ return -1;
}
void Scumm::arrayop_1(int a, byte *ptr)