diff options
author | megamage <none@none> | 2009-01-03 11:06:51 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-01-03 11:06:51 -0600 |
commit | 9438625a19c070ec20d392fa57f1de6a61b7b985 (patch) | |
tree | e4d7fc1ea493a8fb86bd4729b5c6940a2c771d27 /src/game/SpellEffects.cpp | |
parent | a1a52b710c6563105d1c24112b1fa2699f3fbdfe (diff) |
[7015] Implement support -1 in item_template.stackable and item_template.maxcount fields. By VladimirMangos.
--HG--
branch : trunk
Diffstat (limited to 'src/game/SpellEffects.cpp')
-rw-r--r-- | src/game/SpellEffects.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index 076c36aa6b2..ac4cd626be0 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -2581,8 +2581,8 @@ void Spell::DoCreateItem(uint32 i, uint32 itemtype) if (num_to_add < 1) num_to_add = 1; - if (num_to_add > pProto->Stackable) - num_to_add = pProto->Stackable; + if (num_to_add > pProto->GetMaxStackSize()) + num_to_add = pProto->GetMaxStackSize(); // init items_count to 1, since 1 item will be created regardless of specialization int items_count=1; |