mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-20 13:21:28 +00:00
DisbandRaid converted to QueryDatabase
This commit is contained in:
parent
5781821ab3
commit
73b2987700
@ -127,14 +127,9 @@ void Raid::RemoveMember(const char *characterName)
|
|||||||
|
|
||||||
void Raid::DisbandRaid()
|
void Raid::DisbandRaid()
|
||||||
{
|
{
|
||||||
char errbuf[MYSQL_ERRMSG_SIZE];
|
std::string query = StringFormat("DELETE FROM raid_members WHERE raidid = %lu", (unsigned long)GetID());
|
||||||
char* query = 0;
|
auto results = database.QueryDatabase(query);
|
||||||
MYSQL_RES *result;
|
|
||||||
if (database.RunQuery(query,MakeAnyLenString(&query, "DELETE FROM raid_members WHERE raidid=%lu", (unsigned long)GetID()),errbuf,&result)){
|
|
||||||
mysql_free_result(result);
|
|
||||||
}
|
|
||||||
|
|
||||||
safe_delete_array(query);
|
|
||||||
LearnMembers();
|
LearnMembers();
|
||||||
VerifyRaid();
|
VerifyRaid();
|
||||||
SendRaidDisbandAll();
|
SendRaidDisbandAll();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user