From 54b8a4d06f56b3045f0e5a1ec3709ac1524f48d0 Mon Sep 17 00:00:00 2001 From: Sven Hesse Date: Tue, 1 May 2007 14:49:13 +0000 Subject: Made the collisionAreas' coordinates unsigned. This should fix bug #1706988 svn-id: r26715 --- engines/gob/draw_v2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/gob/draw_v2.cpp') diff --git a/engines/gob/draw_v2.cpp b/engines/gob/draw_v2.cpp index 56757bb106..67b8eb3c13 100644 --- a/engines/gob/draw_v2.cpp +++ b/engines/gob/draw_v2.cpp @@ -82,7 +82,7 @@ void Draw_v2::animateCursor(int16 cursor) { // .-- _draw_animateCursorSUB1 --- if (cursorIndex == -1) { cursorIndex = 0; - for (ptr = _vm->_game->_collisionAreas; ptr->left != -1; ptr++) { + for (ptr = _vm->_game->_collisionAreas; ptr->left != 0xFFFF; ptr++) { if ((ptr->flags & 0xF00) || (ptr->id & 0x4000)) continue; -- cgit v1.2.3