diff options
author | Machiavelli <none@none> | 2009-10-05 16:20:02 +0200 |
---|---|---|
committer | Machiavelli <none@none> | 2009-10-05 16:20:02 +0200 |
commit | 4cbc110408555c690f4b581aac187b6a8d55bcfd (patch) | |
tree | 937b688f1998f6c47d180ef95ba9f6ee034456f8 /src | |
parent | 46061f1b71aa969144dd6382a093d53712469d6e (diff) |
* Attempt to fix a crash in AuctionHouseObject::Update()
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/AuctionHouseMgr.cpp | 6 |
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 |