mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-15 12:31:31 +00:00
GetGroupID converted to StringFormat
This commit is contained in:
parent
538979716d
commit
34a7b46163
@ -1676,10 +1676,9 @@ void Database::ClearGroup(uint32 gid) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
uint32 Database::GetGroupID(const char* name){
|
uint32 Database::GetGroupID(const char* name){
|
||||||
char *query = nullptr;
|
|
||||||
|
|
||||||
auto results = QueryDatabase(query, MakeAnyLenString(&query, "SELECT groupid from group_id where name='%s'", name));
|
std::string query = StringFormat("SELECT groupid from group_id 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