Fix linux build (with PCH enabled, mind you)

--HG--
branch : trunk
This commit is contained in:
Machiavelli
2010-08-21 03:44:02 +02:00
parent 994186f267
commit 8cfc3782e3
4 changed files with 9 additions and 9 deletions

View File

@@ -59,7 +59,7 @@ Guild::Guild()
Guild::~Guild()
{
DeleteGuildBankItems();
DeleteGuildBankItems(SQLTransaction(NULL));
}
bool Guild::Create(Player* leader, std::string gname)
@@ -716,7 +716,7 @@ void Guild::Disband()
trans->PAppend("DELETE FROM guild_bank_tab WHERE guildid = '%u'", m_Id);
//Free bank tab used memory and delete items stored in them
DeleteGuildBankItems(true);
DeleteGuildBankItems(trans, true);
trans->PAppend("DELETE FROM guild_bank_item WHERE guildid = '%u'", m_Id);
trans->PAppend("DELETE FROM guild_bank_right WHERE guildid = '%u'", m_Id);
@@ -2350,7 +2350,7 @@ void Guild::BroadcastEvent(GuildEvents event, uint64 guid, uint8 strCount, std::
sLog.outDebug("WORLD: Sent SMSG_GUILD_EVENT");
}
void Guild::DeleteGuildBankItems( bool alsoInDB /*= false*/, SQLTransaction& trans)
void Guild::DeleteGuildBankItems(SQLTransaction& trans, bool alsoInDB /*= false*/)
{
for (size_t i = 0; i < m_TabListMap.size(); ++i)
{