aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2011-12-13 00:38:57 +0000
committerEugene Sandulenko2011-12-13 00:39:50 +0000
commit22d3118aff380aa301443275953fb1af7624d136 (patch)
treec3b24fde412361b694f9833525e1d86aa2d913b7 /engines
parent8a9eaa58dfc163da4e1588dcf45faae5f1e62f15 (diff)
downloadscummvm-rg350-22d3118aff380aa301443275953fb1af7624d136.tar.gz
scummvm-rg350-22d3118aff380aa301443275953fb1af7624d136.tar.bz2
scummvm-rg350-22d3118aff380aa301443275953fb1af7624d136.zip
AGI: Fix bug #3095169: AGI inventory items
Diffstat (limited to 'engines')
-rw-r--r--engines/agi/objects.cpp2
1 files changed, 1 insertions, 1 deletions
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;
}