Apply some patches by syke to prevent buffer overruns, etc.

svn-id: r3723
This commit is contained in:
James Brown 2002-03-10 17:33:04 +00:00
parent 31dc24a037
commit 87ac8ae487
16 changed files with 45 additions and 42 deletions

View file

@ -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");
}