From 22d3118aff380aa301443275953fb1af7624d136 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Tue, 13 Dec 2011 00:38:57 +0000 Subject: AGI: Fix bug #3095169: AGI inventory items --- engines/agi/objects.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines') diff --git a/engines/agi/objects.cpp b/engines/agi/objects.cpp index 94eef92579..447cff2a3f 100644 --- a/engines/agi/objects.cpp +++ b/engines/agi/objects.cpp @@ -52,7 +52,7 @@ int AgiEngine::decodeObjects(uint8 *mem, uint32 flen) { // alloc memory for object list // byte 3 = number of animated objects. this is ignored.. ?? - if (READ_LE_UINT16(mem) / padsize >= 256) { + if (READ_LE_UINT16(mem) / padsize > 256) { // die with no error! AGDS game needs not to die to work!! :( return errOK; } -- cgit v1.2.3