* Attempt to fix a crash in AuctionHouseObject::Update()

--HG--
branch : trunk
This commit is contained in:
Machiavelli
2009-10-05 16:20:02 +02:00
parent 46061f1b71
commit 4cbc110408

View File

@@ -504,10 +504,16 @@ void AuctionHouseObject::Update()
time_t curTime = sWorld.GetGameTime();
///- Handle expired auctions
// If storage is empty, no need to update.
if (AuctionsMap.empty())
return;
// reset next if at end of map
if (next == AuctionsMap.end())
next = AuctionsMap.begin();
ASSERT(next != NULL);
uint32 loopBreaker = 0;
// Initialize itr with next. next is stored for future calls to Update() after