mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-24 07:32:40 +00:00
GlobalInstane converted to StringFormat
This commit is contained in:
parent
f2e7f8ec64
commit
9cd2225f8c
@ -2409,10 +2409,9 @@ void Database::SetInstanceDuration(uint16 instance_id, uint32 new_duration)
|
|||||||
|
|
||||||
bool Database::GlobalInstance(uint16 instance_id)
|
bool Database::GlobalInstance(uint16 instance_id)
|
||||||
{
|
{
|
||||||
char *query = nullptr;
|
|
||||||
|
std::string query = StringFormat("SELECT is_global from instance_list where id=%u LIMIT 1", instance_id);
|
||||||
auto results = QueryDatabase(query, MakeAnyLenString(&query, "SELECT is_global from instance_list where id=%u LIMIT 1", instance_id));
|
auto results = QueryDatabase(query);
|
||||||
safe_delete_array(query);
|
|
||||||
|
|
||||||
if (!results.Success())
|
if (!results.Success())
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user