Fix some problem with Guild Bank after switch to client version 3.3.2, also cleanup code. Thx TOM_RUS.

--HG--
branch : trunk
This commit is contained in:
n0n4m3 committed 2010-02-15 14:30:12 +01:00
1 parent a5585ceb3c
commit 490f4bf7ec
4 files changed
+113 -186

No files matched your search

+4 -1
View File
@@ -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