Apply some patches by syke to prevent buffer overruns, etc.
svn-id: r3723
This commit is contained in:
parent
31dc24a037
commit
87ac8ae487
16 changed files with 45 additions and 42 deletions
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue