aboutsummaryrefslogtreecommitdiff
path: root/src/game/ObjectMgr.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-08-27 20:27:55 -0500
committermegamage <none@none>2009-08-27 20:27:55 -0500
commitdd72b5524c01ef081e1a35f65a3967652a314e5f (patch)
treefa7c95cd02aa983f70ab0f983d1fc305cfa1e3e1 /src/game/ObjectMgr.cpp
parenteeb18e51bb7a539116e0a92f1db557f8727042ff (diff)
[8426] Use upper/lower iterator pairs as result instead 2 function calls. Author: VladimirMangos
--HG-- branch : trunk
Diffstat (limited to 'src/game/ObjectMgr.cpp')
-rw-r--r--src/game/ObjectMgr.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/game/ObjectMgr.cpp b/src/game/ObjectMgr.cpp
index 8d00b604236..7b97db2eac4 100644
--- a/src/game/ObjectMgr.cpp
+++ b/src/game/ObjectMgr.cpp
@@ -2371,10 +2371,8 @@ void ObjectMgr::LoadItemRequiredTarget()
if (pItemProto->Spells[i].SpellTrigger == ITEM_SPELLTRIGGER_ON_USE ||
pItemProto->Spells[i].SpellTrigger == ITEM_SPELLTRIGGER_ON_NO_DELAY_USE)
{
- SpellScriptTarget::const_iterator lower = spellmgr.GetBeginSpellScriptTarget(pSpellInfo->Id);
- SpellScriptTarget::const_iterator upper = spellmgr.GetEndSpellScriptTarget(pSpellInfo->Id);
-
- if (lower != upper)
+ SpellScriptTargetBounds bounds = spellmgr.GetSpellScriptTargetBounds(pSpellInfo->Id);
+ if (bounds.first != bounds.second)
break;
for (int j = 0; j < 3; ++j)