diff options
author | megamage <none@none> | 2009-05-04 17:32:39 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-05-04 17:32:39 -0500 |
commit | 92e393deb8ce5c573e31ce98ac8901a2ad4e8089 (patch) | |
tree | 964534c07d507f20f641495e51a961767392531a /src/game/Guild.h | |
parent | 0ad353f147b65e7b18e2dde653a7d9919e9ddbec (diff) |
[7761] GuildBankTabPrice vector is replaced by an array. Author: zhenya
Arrays are significantly faster.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Guild.h')
-rw-r--r-- | src/game/Guild.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/game/Guild.h b/src/game/Guild.h index 12dea1feb1f..9f832260f14 100644 --- a/src/game/Guild.h +++ b/src/game/Guild.h @@ -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; |