Fixed compile

i swear, i need more beer

--HG--
branch : trunk
This commit is contained in:
Shauren
2010-06-16 21:32:34 +02:00
parent 90fceb18ac
commit a71d549bc3

View File

@@ -5991,7 +5991,7 @@ void Spell::EffectScriptEffect(uint32 effIndex)
Player *plr = unitTarget->ToPlayer();
static uint32 const itemId[] = {45061, 45176, 45177, 45178, 45179, 0};
// player can only have one of these items
for (uint32 *itr = &itemId[0]; *itr; ++itr)
for (uint32 const *itr = &itemId[0]; *itr; ++itr)
if (plr->HasItemCount(*itr, 1, true))
return;
DoCreateItem(effIndex, itemId[urand(0,4)]);