diff --git a/src/game/Guild.h b/src/game/Guild.h index 90dff2c75..d856ebea1 100644 --- a/src/game/Guild.h +++ b/src/game/Guild.h @@ -26,14 +26,6 @@ class Item; -uint32 GuildBankTabPrice[GUILD_BANK_MAX_TABS] = -{ 100,250,500,1000,2500,5000 }; - -inline uint32 GetGuildBankTabPrice(uint8 Index) -{ - return Index < GUILD_BANK_MAX_TABS ? GuildBankTabPrice[Index] : 0; -} - enum GuildDefaultRanks { GR_GUILDMASTER = 0, @@ -197,6 +189,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; diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 648d7e555..6a2874ed9 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "7761" + #define REVISION_NR "7762" #endif // __REVISION_NR_H__