Fix max items quantity added via scripting

This commit is contained in:
Alexander Batalov 2022-08-14 22:15:13 +03:00
parent 52af5cfc1f
commit 27c5beea01
1 changed files with 2 additions and 1 deletions

View File

@ -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) {