mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-16 01:01:30 +00:00
GetRaidID converted to StringFormat
This commit is contained in:
parent
12c15c6db0
commit
dc6e5bc48e
@ -1867,7 +1867,6 @@ void Database::ClearAllRaidDetails(void)
|
|||||||
|
|
||||||
void Database::ClearRaidDetails(uint32 rid) {
|
void Database::ClearRaidDetails(uint32 rid) {
|
||||||
|
|
||||||
|
|
||||||
if(rid == 0)
|
if(rid == 0)
|
||||||
{
|
{
|
||||||
//clear all raids
|
//clear all raids
|
||||||
@ -1886,10 +1885,9 @@ void Database::ClearRaidDetails(uint32 rid) {
|
|||||||
// returns 0 on error or no raid for that character, or
|
// returns 0 on error or no raid for that character, or
|
||||||
// the raid id that the character is a member of.
|
// the raid id that the character is a member of.
|
||||||
uint32 Database::GetRaidID(const char* name){
|
uint32 Database::GetRaidID(const char* name){
|
||||||
char *query = nullptr;
|
|
||||||
|
|
||||||
auto results = QueryDatabase(query, MakeAnyLenString(&query, "SELECT raidid from raid_members where name='%s'", name));
|
std::string query = StringFormat("SELECT raidid from raid_members where name='%s'", name);
|
||||||
safe_delete_array(query);
|
auto results = QueryDatabase(query);
|
||||||
|
|
||||||
if (!results.Success())
|
if (!results.Success())
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user