aboutsummaryrefslogtreecommitdiff
path: root/object.cpp
diff options
context:
space:
mode:
authorJames Brown2002-03-10 17:33:04 +0000
committerJames Brown2002-03-10 17:33:04 +0000
commit87ac8ae487a32f3e484846771b308bd548bc4814 (patch)
treec78be5f6357f3e3d91cfd7ecab0f5b7626419fa5 /object.cpp
parent31dc24a037f9673441cf7a5295138b89c9d6d911 (diff)
downloadscummvm-rg350-87ac8ae487a32f3e484846771b308bd548bc4814.tar.gz
scummvm-rg350-87ac8ae487a32f3e484846771b308bd548bc4814.tar.bz2
scummvm-rg350-87ac8ae487a32f3e484846771b308bd548bc4814.zip
Apply some patches by syke to prevent buffer overruns, etc.
svn-id: r3723
Diffstat (limited to 'object.cpp')
-rw-r--r--object.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/object.cpp b/object.cpp
index 08f717bf18..df857cbb6b 100644
--- a/object.cpp
+++ b/object.cpp
@@ -654,7 +654,7 @@ void Scumm::removeObjectFromRoom(int obj) {
void Scumm::addObjectToDrawQue(int object) {
_drawObjectQue[_drawObjectQueNr++] = object;
- if (_drawObjectQueNr > sizeof(_drawObjectQue)/sizeof(_drawObjectQue[0]))
+ if ((unsigned int)_drawObjectQueNr > sizeof(_drawObjectQue)/sizeof(_drawObjectQue[0]))
error("Draw Object Que overflow");
}