Fix max items quantity added via scripting
This commit is contained in:
parent
52af5cfc1f
commit
27c5beea01
|
@ -3604,7 +3604,8 @@ static void opAddMultipleObjectsToInventory(Program* program)
|
||||||
if (quantity < 0) {
|
if (quantity < 0) {
|
||||||
quantity = 1;
|
quantity = 1;
|
||||||
} else if (quantity > 99999) {
|
} else if (quantity > 99999) {
|
||||||
quantity = 500;
|
// SFALL
|
||||||
|
quantity = 99999;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (itemAdd(object, item, quantity) == 0) {
|
if (itemAdd(object, item, quantity) == 0) {
|
||||||
|
|
Loading…
Reference in New Issue