aboutsummaryrefslogtreecommitdiff
path: root/scumm/object.cpp
diff options
context:
space:
mode:
authorMax Horn2003-05-18 21:03:57 +0000
committerMax Horn2003-05-18 21:03:57 +0000
commit7171c5bcd4063be192c94be93555b15f9eb59622 (patch)
tree5f9968fe95c51b83b69374488710a13010d45acb /scumm/object.cpp
parent6b7484f320ddcdf197c8b863bb60ef9aad8f72ae (diff)
downloadscummvm-rg350-7171c5bcd4063be192c94be93555b15f9eb59622.tar.gz
scummvm-rg350-7171c5bcd4063be192c94be93555b15f9eb59622.tar.bz2
scummvm-rg350-7171c5bcd4063be192c94be93555b15f9eb59622.zip
cleanup
svn-id: r7646
Diffstat (limited to 'scumm/object.cpp')
-rw-r--r--scumm/object.cpp2
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");
}