aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBiglad <none@none>2009-10-05 15:23:58 +0100
committerBiglad <none@none>2009-10-05 15:23:58 +0100
commit80072cf9dd3bc35c594b651ed197662c0536caa6 (patch)
tree832de0663244d0f89fa0cc5bbfcf8e936d805f90 /src
parent7bbb29235250d4eec52fde7f7f85da8bb0ed4a88 (diff)
parent4cbc110408555c690f4b581aac187b6a8d55bcfd (diff)
merge
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/AuctionHouseMgr.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game/AuctionHouseMgr.cpp b/src/game/AuctionHouseMgr.cpp
index af242455f5c..a57456a71c6 100644
--- a/src/game/AuctionHouseMgr.cpp
+++ b/src/game/AuctionHouseMgr.cpp
@@ -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