mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 01:11:29 +00:00
GetAgreementFlag converted to StringFormat
This commit is contained in:
parent
8e8a21349f
commit
c1b69594e5
@ -1807,10 +1807,9 @@ void Database::ClearGroupLeader(uint32 gid) {
|
|||||||
|
|
||||||
uint8 Database::GetAgreementFlag(uint32 acctid)
|
uint8 Database::GetAgreementFlag(uint32 acctid)
|
||||||
{
|
{
|
||||||
char* query = nullptr;
|
|
||||||
|
|
||||||
auto results = QueryDatabase(query, MakeAnyLenString(&query, "SELECT rulesflag FROM account WHERE id=%i",acctid));
|
std::string query = StringFormat("SELECT rulesflag FROM account WHERE id=%i",acctid);
|
||||||
safe_delete_array(query);
|
auto results = QueryDatabase(query);
|
||||||
|
|
||||||
if (!results.Success())
|
if (!results.Success())
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user