diff options
Diffstat (limited to 'engines/agi/loader_v3.cpp')
-rw-r--r-- | engines/agi/loader_v3.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/agi/loader_v3.cpp b/engines/agi/loader_v3.cpp index 250d8e7615..1dd00dc18e 100644 --- a/engines/agi/loader_v3.cpp +++ b/engines/agi/loader_v3.cpp @@ -257,7 +257,7 @@ int AgiLoader_v3::loadResource(int t, int n) { int ec = errOK; uint8 *data = NULL; - if (n > MAX_DIRS) + if (n >= MAX_DIRS) return errBadResource; switch (t) { |