diff --git a/dDatabase/GameDatabase/SQLite/Tables/CharInfo.cpp b/dDatabase/GameDatabase/SQLite/Tables/CharInfo.cpp index 7853442c..efe5e1ab 100644 --- a/dDatabase/GameDatabase/SQLite/Tables/CharInfo.cpp +++ b/dDatabase/GameDatabase/SQLite/Tables/CharInfo.cpp @@ -81,5 +81,5 @@ void SQLiteDatabase::UpdateLastLoggedInCharacter(const uint32_t characterId) { bool SQLiteDatabase::IsNameInUse(const std::string_view name) { auto [_, result] = ExecuteSelect("SELECT name FROM charinfo WHERE name = ? or pending_name = ? LIMIT 1;", name, name); - return result.eof(); + return !result.eof(); }