diff options
Diffstat (limited to 'scumm/object.cpp')
-rw-r--r-- | scumm/object.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scumm/object.cpp b/scumm/object.cpp index d4ca4eb2bf..b523b1b7ee 100644 --- a/scumm/object.cpp +++ b/scumm/object.cpp @@ -827,7 +827,7 @@ void Scumm::removeObjectFromRoom(int obj) { void Scumm::addObjectToDrawQue(int object) { _drawObjectQue[_drawObjectQueNr++] = object; - if ((unsigned int)_drawObjectQueNr > sizeof(_drawObjectQue) / sizeof(_drawObjectQue[0])) + if ((unsigned int)_drawObjectQueNr > ARRAYSIZE(_drawObjectQue)) error("Draw Object Que overflow"); } |