[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
+16
View File
@@ -191,6 +191,22 @@ enum GuildEmblem
ERR_GUILDEMBLEM_INVALIDVENDOR = 5
};
inline uint32 GetGuildBankTabPrice(uint8 Index)
{
switch(Index)
{
case 0: return 100;
case 1: return 250;
case 2: return 500;
case 3: return 1000;
case 4: return 2500;
case 5: return 5000;
default:
return 0;
}
return 0;
}
struct GuildBankEvent
{
uint32 LogGuid;