AuctionHouseObject * AuctionHouseMgr::GetAuctionsMap(AuctionHouseEntry const* house) { if(sWorld.getConfig(CONFIG_BOOL_ALLOW_TWO_SIDE_INTERACTION_AUCTION)) return &mNeutralAuctions; // team have linked auction houses switch(GetAuctionHouseTeam(house)) { case ALLIANCE: return &mAllianceAuctions; case HORDE: return &mHordeAuctions; default: return &mNeutralAuctions; } }
AuctionHouseObject* AuctionHouseMgr::GetAuctionsMap(AuctionHouseEntry const* house) { if (sWorld.getConfig(CONFIG_BOOL_ALLOW_TWO_SIDE_INTERACTION_AUCTION)) return &mAuctions[AUCTION_HOUSE_NEUTRAL]; // team have linked auction houses switch (GetAuctionHouseTeam(house)) { case ALLIANCE: return &mAuctions[AUCTION_HOUSE_ALLIANCE]; case HORDE: return &mAuctions[AUCTION_HOUSE_HORDE]; default: return &mAuctions[AUCTION_HOUSE_NEUTRAL]; } }