[7761] GuildBankTabPrice vector is replaced by an array. Author: zhenya

Arrays are significantly faster.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-05-04 17:32:39 -05:00
parent 0ad353f147
commit 92e393deb8
5 changed files with 18 additions and 15 deletions

View File

@@ -127,14 +127,6 @@ ObjectMgr::ObjectMgr()
m_arenaTeamId = 1;
m_auctionid = 1;
mGuildBankTabPrice.resize(GUILD_BANK_MAX_TABS);
mGuildBankTabPrice[0] = 100;
mGuildBankTabPrice[1] = 250;
mGuildBankTabPrice[2] = 500;
mGuildBankTabPrice[3] = 1000;
mGuildBankTabPrice[4] = 2500;
mGuildBankTabPrice[5] = 5000;
// Only zero condition left, others will be added while loading DB tables
mConditions.resize(1);
}