aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Spells/SpellEffects.cpp
diff options
context:
space:
mode:
authorAzazel <azazel.kon@gmail.com>2011-04-29 16:48:15 +0600
committerAzazel <azazel.kon@gmail.com>2011-04-29 16:48:15 +0600
commit6fb2bf4224b20c0ccecfceaca8d39ae27b8677ea (patch)
treeeedb96236b09d49bdbcbf5d8931dffc60f4b2f22 /src/server/game/Spells/SpellEffects.cpp
parente1647aaa29cc984672a5f6e56b08278140375443 (diff)
Core: use enum InventoryResult as return type for functions working with player items.
Original patch by TOM_RUS.
Diffstat (limited to 'src/server/game/Spells/SpellEffects.cpp')
-rwxr-xr-xsrc/server/game/Spells/SpellEffects.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/Spells/SpellEffects.cpp b/src/server/game/Spells/SpellEffects.cpp
index 1fb33c8bb36..3aa7709749c 100755
--- a/src/server/game/Spells/SpellEffects.cpp
+++ b/src/server/game/Spells/SpellEffects.cpp
@@ -2431,7 +2431,7 @@ void Spell::DoCreateItem(uint32 /*i*/, uint32 itemtype)
// can the player store the new item?
ItemPosCountVec dest;
uint32 no_space = 0;
- uint8 msg = player->CanStoreNewItem(NULL_BAG, NULL_SLOT, dest, newitemid, num_to_add, &no_space);
+ InventoryResult msg = player->CanStoreNewItem(NULL_BAG, NULL_SLOT, dest, newitemid, num_to_add, &no_space);
if (msg != EQUIP_ERR_OK)
{
// convert to possible store amount
@@ -2897,7 +2897,7 @@ void Spell::EffectSummonChangeItem(SpellEffIndex effIndex)
if (player->IsInventoryPos(pos))
{
ItemPosCountVec dest;
- uint8 msg = player->CanStoreItem(m_CastItem->GetBagSlot(), m_CastItem->GetSlot(), dest, pNewItem, true);
+ InventoryResult msg = player->CanStoreItem(m_CastItem->GetBagSlot(), m_CastItem->GetSlot(), dest, pNewItem, true);
if (msg == EQUIP_ERR_OK)
{
player->DestroyItem(m_CastItem->GetBagSlot(), m_CastItem->GetSlot(), true);