diff options
author | Max Horn | 2003-03-08 03:52:37 +0000 |
---|---|---|
committer | Max Horn | 2003-03-08 03:52:37 +0000 |
commit | 0d18caae26df26a73882fe2a7e5894d2c467f5fe (patch) | |
tree | 306a6c40aca4a990df8fc13f0319d04a98c7be44 /scumm/script.cpp | |
parent | 6316f83c93b1494d6390e5faa9a388dfd36aa7bf (diff) | |
download | scummvm-rg350-0d18caae26df26a73882fe2a7e5894d2c467f5fe.tar.gz scummvm-rg350-0d18caae26df26a73882fe2a7e5894d2c467f5fe.tar.bz2 scummvm-rg350-0d18caae26df26a73882fe2a7e5894d2c467f5fe.zip |
removed valgrind hack again
svn-id: r6765
Diffstat (limited to 'scumm/script.cpp')
-rw-r--r-- | scumm/script.cpp | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/scumm/script.cpp b/scumm/script.cpp index a6d226577f..0e88db10fe 100644 --- a/scumm/script.cpp +++ b/scumm/script.cpp @@ -467,13 +467,7 @@ void Scumm::setResult(int value) { writeVar(_resultVarNumber, value); } -int my_dummy_global = 0; - void Scumm::push(int a) { -// HACK to aid valgrind -if (a > 0) - my_dummy_global++; - assert(_scummStackPos >= 0 && (unsigned int)_scummStackPos < ARRAYSIZE(_scummStack)); _scummStack[_scummStackPos++] = a; } @@ -483,13 +477,7 @@ int Scumm::pop() { error("No items on stack to pop() for %s (0x%X) at [%d-%d]", getOpcodeDesc(_opcode), _opcode, _roomResource, vm.slot[_currentScript].number); } - int a = _scummStack[--_scummStackPos]; - -// HACK to aid valgrind -if (a > 0) - my_dummy_global++; - - return a; + return _scummStack[--_scummStackPos]; } void Scumm::drawBox(int x, int y, int x2, int y2, int color) { |