--HG--
branch : trunk
This commit is contained in:
Biglad
2009-10-05 15:23:58 +01:00
+6
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