aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent-Michael <Vincent_Michael@gmx.de>2014-04-21 17:46:53 +0200
committerVincent-Michael <Vincent_Michael@gmx.de>2014-04-21 17:46:53 +0200
commitcec7c9f07e2c9ddf5382941c227c17fd08d5b903 (patch)
treee3d9e8ea20592e6628711c56b55e72d37f0249c9
parentf5b02d1278ccf7aec62bcc51ea0892e5350e9d5e (diff)
Misc/Guild: Fix guild_xp_for_level structure (startup errors)
-rw-r--r--sql/updates/world/2014_04_21_02_world_guild_xp_for_level_434.sql3
-rw-r--r--src/server/game/Guilds/GuildMgr.cpp2
2 files changed, 4 insertions, 1 deletions
diff --git a/sql/updates/world/2014_04_21_02_world_guild_xp_for_level_434.sql b/sql/updates/world/2014_04_21_02_world_guild_xp_for_level_434.sql
new file mode 100644
index 00000000000..5e8d12c5855
--- /dev/null
+++ b/sql/updates/world/2014_04_21_02_world_guild_xp_for_level_434.sql
@@ -0,0 +1,3 @@
+ALTER TABLE `guild_xp_for_level`
+ CHANGE `lvl` `lvl` TINYINT(3) UNSIGNED NOT NULL,
+ CHANGE `xp_for_next_level` `xp_for_next_level` INT(10) UNSIGNED NOT NULL;
diff --git a/src/server/game/Guilds/GuildMgr.cpp b/src/server/game/Guilds/GuildMgr.cpp
index 6794369f375..bdb0b7dce52 100644
--- a/src/server/game/Guilds/GuildMgr.cpp
+++ b/src/server/game/Guilds/GuildMgr.cpp
@@ -488,7 +488,7 @@ void GuildMgr::LoadGuildXpForLevel()
Field* fields = result->Fetch();
uint32 level = fields[0].GetUInt8();
- uint32 requiredXP = fields[1].GetUInt64();
+ uint32 requiredXP = fields[1].GetUInt32();
if (level >= sWorld->getIntConfig(CONFIG_GUILD_MAX_LEVEL))
{