From 27c5beea014fa7bf873c250d601c0421e5bf868f Mon Sep 17 00:00:00 2001 From: Alexander Batalov Date: Sun, 14 Aug 2022 22:15:13 +0300 Subject: [PATCH] Fix max items quantity added via scripting --- src/interpreter_extra.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/interpreter_extra.cc b/src/interpreter_extra.cc index f86624b..4decf4c 100644 --- a/src/interpreter_extra.cc +++ b/src/interpreter_extra.cc @@ -3604,7 +3604,8 @@ static void opAddMultipleObjectsToInventory(Program* program) if (quantity < 0) { quantity = 1; } else if (quantity > 99999) { - quantity = 500; + // SFALL + quantity = 99999; } if (itemAdd(object, item, quantity) == 0) {