mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-15 12:31:31 +00:00
GetRaidLeaderName converted to StringFormat
This commit is contained in:
parent
dc6e5bc48e
commit
d68fca8e51
@ -1917,10 +1917,9 @@ const char* Database::GetRaidLeaderName(uint32 rid)
|
|||||||
// variable). C++0x standard states this should be thread safe
|
// variable). C++0x standard states this should be thread safe
|
||||||
// but may not be fully supported in some compilers.
|
// but may not be fully supported in some compilers.
|
||||||
static char name[128];
|
static char name[128];
|
||||||
char *query = nullptr;
|
|
||||||
|
std::string query = StringFormat("SELECT name FROM raid_members WHERE raidid=%u AND israidleader=1",rid);
|
||||||
auto results = QueryDatabase(query, MakeAnyLenString(&query, "SELECT name FROM raid_members WHERE raidid=%u AND israidleader=1",rid));
|
auto results = QueryDatabase(query);
|
||||||
safe_delete_array(query);
|
|
||||||
|
|
||||||
if (!results.Success())
|
if (!results.Success())
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user