Fix build error: use fully-qualified EQ::versions::ClientVersion::RoF2; use < for REPLACE row count check

Co-authored-by: Valorith <76063792+Valorith@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-03-08 17:25:35 +00:00
parent 6290ef42c6
commit bd92f19869
2 changed files with 2 additions and 2 deletions

View File

@ -895,7 +895,7 @@ inline void TestClientBuffPersistence()
Client loader;
loader.SetCharacterId(test_character_id);
loader.SetName("buff-persistence-load");
loader.SetClientVersion(ClientVersion::RoF2);
loader.SetClientVersion(EQ::versions::ClientVersion::RoF2);
database.LoadBuffs(&loader);
auto loaded_buffs = loader.GetBuffs();

View File

@ -2937,7 +2937,7 @@ void ZoneDatabase::SaveBuffs(Client *client)
if (!v.empty()) {
const auto saved_count = CharacterBuffsRepository::ReplaceMany(database, v);
if (saved_count != static_cast<int>(v.size())) {
if (saved_count < static_cast<int>(v.size())) {
database.TransactionRollback();
LogError(
"Failed to save all buffs for character [{}] [{}]. Expected [{}] rows, saved [{}]. Verify the `character_buffs` schema is up to date.",