mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-07 03:02:35 +00:00
CheckInstanceExists converted to StringFormat
This commit is contained in:
parent
77c793166c
commit
cb5cecd0c2
@ -2234,10 +2234,9 @@ bool Database::RemoveClientsFromInstance(uint16 instance_id)
|
|||||||
|
|
||||||
bool Database::CheckInstanceExists(uint16 instance_id)
|
bool Database::CheckInstanceExists(uint16 instance_id)
|
||||||
{
|
{
|
||||||
char *query = nullptr;
|
|
||||||
|
|
||||||
auto results = QueryDatabase(query, MakeAnyLenString(&query, "SELECT * FROM instance_list where id=%u", instance_id));
|
std::string query = StringFormat("SELECT * FROM instance_list where id=%u", instance_id);
|
||||||
safe_delete_array(query);
|
auto results = QueryDatabase(query);
|
||||||
|
|
||||||
if (!results.Success())
|
if (!results.Success())
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user