mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-17 18:41:29 +00:00
SetRaidDetails converted to QueryDatabase
This commit is contained in:
parent
67c8949cd4
commit
77cfd116e0
@ -1229,14 +1229,9 @@ void Raid::LockRaid(bool lockFlag)
|
|||||||
|
|
||||||
void Raid::SetRaidDetails()
|
void Raid::SetRaidDetails()
|
||||||
{
|
{
|
||||||
char errbuf[MYSQL_ERRMSG_SIZE];
|
std::string query = StringFormat("INSERT INTO raid_details SET raidid = %lu, loottype = 4, locked = 0",
|
||||||
char* query = 0;
|
(unsigned long)GetID());
|
||||||
MYSQL_RES *result;
|
auto results = database.QueryDatabase(query);
|
||||||
if (database.RunQuery(query,MakeAnyLenString(&query, "INSERT INTO raid_details SET raidid=%lu, loottype=4, locked=0", (unsigned long)GetID()),errbuf,&result)){
|
|
||||||
mysql_free_result(result);
|
|
||||||
}
|
|
||||||
|
|
||||||
safe_delete_array(query);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Raid::GetRaidDetails()
|
void Raid::GetRaidDetails()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user