invert sqlite lookup result to fix name in use lookup errors (#1755)

Co-authored-by: jadebenn <9892985+jadebenn@users.noreply.github.com>
This commit is contained in:
jadebenn 2025-03-28 20:12:28 -05:00 committed by GitHub
parent f78baee534
commit aa49aaae76
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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();
}