mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-15 20:51:29 +00:00
SetLFP converted to StringFormat
This commit is contained in:
parent
d4aaa93047
commit
bde62709b5
@ -1574,10 +1574,9 @@ bool Database::GetLiveChar(uint32 account_id, char* cname) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Database::SetLFP(uint32 CharID, bool LFP) {
|
void Database::SetLFP(uint32 CharID, bool LFP) {
|
||||||
char *query = nullptr;
|
|
||||||
|
|
||||||
auto results = QueryDatabase(query, MakeAnyLenString(&query, "update character_ set lfp=%i where id=%i",LFP, CharID));
|
std::string query = StringFormat("update character_ set lfp=%i where id=%i",LFP, 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