diff options
author | Max Horn | 2002-05-05 18:10:29 +0000 |
---|---|---|
committer | Max Horn | 2002-05-05 18:10:29 +0000 |
commit | ff376ea8a590f8afbc521eb7cac0a54c2acabc3b (patch) | |
tree | aaeabb72a4c029cc446b0653f4409a80d38113eb /script.cpp | |
parent | f412e7bb575ad56de201356d4851e9d7096062ef (diff) | |
download | scummvm-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.cpp | 3 |
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) |