From 490f4bf7ec0921b7129233f121b812051d4f2335 Mon Sep 17 00:00:00 2001 From: n0n4m3 Date: Mon, 15 Feb 2010 14:30:12 +0100 Subject: Fix some problem with Guild Bank after switch to client version 3.3.2, also cleanup code. Thx TOM_RUS. --HG-- branch : trunk --- src/game/ObjectMgr.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/game/ObjectMgr.cpp') diff --git a/src/game/ObjectMgr.cpp b/src/game/ObjectMgr.cpp index e44207c63db..77048650708 100644 --- a/src/game/ObjectMgr.cpp +++ b/src/game/ObjectMgr.cpp @@ -3250,9 +3250,12 @@ void ObjectMgr::LoadGuilds() delete newguild; continue; } + newguild->LoadGuildEventLogFromDB(); + newguild->LoadGuildBankEventLogFromDB(); + newguild->LoadGuildBankFromDB(); AddGuild(newguild); - }while (result->NextRow()); + } while (result->NextRow()); //delete unused LogGuid records in guild_eventlog and guild_bank_eventlog table //you can comment these lines if you don't plan to change CONFIG_GUILD_EVENT_LOG_COUNT and CONFIG_GUILD_BANK_EVENT_LOG_COUNT -- cgit v1.2.3