diff options
-rw-r--r-- | engines/agos/items.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/agos/items.cpp b/engines/agos/items.cpp index 85ae92bee8..c439be3555 100644 --- a/engines/agos/items.cpp +++ b/engines/agos/items.cpp @@ -130,7 +130,8 @@ int AGOSEngine::getUserFlag(Item *item, int a) { if (subUserFlag == NULL) return 0; - if (a < 0 || a > 7) + int max = (getGameType() == GType_ELVIRA1) ? 7 : 3; + if (a < 0 || a > max) return 0; return subUserFlag->userFlags[a]; |