From c5dbbd1f07c5bddaa94f4fa10b076bfb95c910f9 Mon Sep 17 00:00:00 2001 From: Akkadius Date: Tue, 20 Jan 2015 02:12:59 -0600 Subject: [PATCH] Remove Duplicative MySQL Error: Error updating LFP for character %i : %s --- common/database.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/common/database.cpp b/common/database.cpp index 0e8d91610..b954421b9 100644 --- a/common/database.cpp +++ b/common/database.cpp @@ -3110,9 +3110,7 @@ void Database::SetLFP(uint32 CharID, bool LFP) { void Database::SetLoginFlags(uint32 CharID, bool LFP, bool LFG, uint8 firstlogon) { std::string query = StringFormat("update `character_data` SET `lfp` = %i, `lfg` = %i, `firstlogon` = %i WHERE `id` = %i",LFP, LFG, firstlogon, CharID); - auto results = QueryDatabase(query); - if (!results.Success()) - Log.Out(Logs::General, Logs::Error, "Error updating LFP for character %i : %s", CharID, results.ErrorMessage().c_str()); + QueryDatabase(query); } void Database::SetLFG(uint32 CharID, bool LFG) {