mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-01 06:01:38 +00:00
GetGroupID converted to StringFormat
This commit is contained in:
+2
-3
@@ -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())
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user