mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 09:31:30 +00:00
SetLFG converted to StringFormat
This commit is contained in:
parent
fdb4e54ff6
commit
474d5d1340
@ -1592,10 +1592,9 @@ void Database::SetLoginFlags(uint32 CharID, bool LFP, bool LFG, uint8 firstlogon
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Database::SetLFG(uint32 CharID, bool LFG) {
|
void Database::SetLFG(uint32 CharID, bool LFG) {
|
||||||
char *query = nullptr;
|
|
||||||
|
|
||||||
auto results = QueryDatabase(query, MakeAnyLenString(&query, "update character_ set lfg=%i where id=%i",LFG, CharID));
|
std::string query = StringFormat("update character_ set lfg=%i where id=%i",LFG, CharID);
|
||||||
safe_delete_array(query);
|
auto results = QueryDatabase(query);
|
||||||
|
|
||||||
if (!results.Success())
|
if (!results.Success())
|
||||||
LogFile->write(EQEMuLog::Error, "Error updating LFP for character %i : %s", CharID, results.ErrorMessage().c_str());
|
LogFile->write(EQEMuLog::Error, "Error updating LFP for character %i : %s", CharID, results.ErrorMessage().c_str());
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user