diff options
author | James Brown | 2002-11-02 12:21:40 +0000 |
---|---|---|
committer | James Brown | 2002-11-02 12:21:40 +0000 |
commit | 53f26cb4acc192b1526d0db44c3a603e5933e6a0 (patch) | |
tree | 58b8d419b06ad71a0dd1de9b09c2280ddb9ee836 /scumm/script.cpp | |
parent | e7a245114ddcec2994f00da205797138051aedce (diff) | |
download | scummvm-rg350-53f26cb4acc192b1526d0db44c3a603e5933e6a0.tar.gz scummvm-rg350-53f26cb4acc192b1526d0db44c3a603e5933e6a0.tar.bz2 scummvm-rg350-53f26cb4acc192b1526d0db44c3a603e5933e6a0.zip |
*cough*... never mind me...
svn-id: r5381
Diffstat (limited to 'scumm/script.cpp')
-rw-r--r-- | scumm/script.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scumm/script.cpp b/scumm/script.cpp index 7f732faa8c..3f82bc8f8e 100644 --- a/scumm/script.cpp +++ b/scumm/script.cpp @@ -843,7 +843,7 @@ void Scumm::push(int a) int Scumm::pop() { - if ((_scummStackPos > 0) && ((unsigned int)_scummStackPos <= ARRAYSIZE(_scummStack))) { + if ((_scummStackPos < 1) || ((unsigned int)_scummStackPos > ARRAYSIZE(_scummStack))) { error("No items on stack to pop() for %s (0x%X) at [%d-%d]\n", _opcodes_lookup[_opcode], _opcode, _roomResource, vm.slot[_currentScript].number); } |