aboutsummaryrefslogtreecommitdiff
path: root/src/game/AuctionHouseMgr.cpp
diff options
context:
space:
mode:
authormaximius <none@none>2009-10-31 16:00:47 -0700
committermaximius <none@none>2009-10-31 16:00:47 -0700
commit743578b81f297734162785fe2e2daa32eb5d8aad (patch)
tree077059ac516c9cbf404ea69aacf39b488e24637d /src/game/AuctionHouseMgr.cpp
parentf5696bcca519a64c9d2ef3fcc365a52ead99e03b (diff)
*Reinit the iterator in each loop as the iter is removed from the list, in AuctionHouseObject::Update, by Trazom
*No longer disregard z/o in Map::CreatureRelocation, thanks Sisif *Cleanup, and make Divine Storm default to m_caster is no unitTarget is available *Some mtmaps optimization --HG-- branch : trunk
Diffstat (limited to 'src/game/AuctionHouseMgr.cpp')
-rw-r--r--src/game/AuctionHouseMgr.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/AuctionHouseMgr.cpp b/src/game/AuctionHouseMgr.cpp
index 905e9c4fa17..402c198221e 100644
--- a/src/game/AuctionHouseMgr.cpp
+++ b/src/game/AuctionHouseMgr.cpp
@@ -528,9 +528,10 @@ void AuctionHouseObject::Update()
} while (result->NextRow());
delete result;
- vector<uint32>::iterator iter = expiredAuctions.begin();
while (!expiredAuctions.empty())
{
+ vector<uint32>::iterator iter = expiredAuctions.begin();
+
// from auctionhousehandler.cpp, creates auction pointer & player pointer
AuctionEntry* auction = GetAuction(*iter);