From 86013b73b402ed00743eabb559e71d6d9dd6e47f Mon Sep 17 00:00:00 2001 From: Brian Date: Mon, 21 Dec 2009 14:58:31 -0700 Subject: * Add support for extremely large stackable value in item_template. * Patch by Kudlaty -- THANK YOU! --HG-- branch : trunk --- src/game/ObjectMgr.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/game/ObjectMgr.cpp') diff --git a/src/game/ObjectMgr.cpp b/src/game/ObjectMgr.cpp index 1e081c901ba..76c66dbd54a 100644 --- a/src/game/ObjectMgr.cpp +++ b/src/game/ObjectMgr.cpp @@ -2112,10 +2112,10 @@ void ObjectMgr::LoadItemPrototypes() sLog.outErrorDb("Item (Entry: %u) has too large negative in stackable (%i), replace by value (-1) no stacking limits.",i,proto->Stackable); const_cast(proto)->Stackable = -1; } - else if (proto->Stackable > 1000) + else if (proto->Stackable > 2147483647) { - sLog.outErrorDb("Item (Entry: %u) has too large value in stackable (%u), replace by hardcoded upper limit (1000).",i,proto->Stackable); - const_cast(proto)->Stackable = 1000; + sLog.outErrorDb("Item (Entry: %u) has too large value in stackable (%u), replace by hardcoded upper limit (2147483647).",i,proto->Stackable); + const_cast(proto)->Stackable = 2147483647; } if (proto->ContainerSlots > MAX_BAG_SIZE) -- cgit v1.2.3