Query fix for group_leaders table. This may resolve some crashes/bugs related to Mercs/Bots and Groups.

This commit is contained in:
Trevius
2015-01-07 23:45:44 -06:00
parent a83d536712
commit 3b2fbd337f
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -3303,7 +3303,7 @@ void Database::SetGroupLeaderName(uint32 gid, const char* name) {
return;
}
query = StringFormat("INSERT INTO group_leaders(gid, leadername, marknpc, leadershipaa, maintank, assist, puller, mentoree, mentor_percent) VALUES(%u, '%s', '', '', '', '', '', '', '0')",
query = StringFormat("REPLACE INTO group_leaders(gid, leadername, marknpc, leadershipaa, maintank, assist, puller, mentoree, mentor_percent) VALUES(%u, '%s', '', '', '', '', '', '', '0')",
gid, EscapeString(name).c_str());
result = QueryDatabase(query);