diff --git a/zone/cli/tests/cli_zone_state.cpp b/zone/cli/tests/cli_zone_state.cpp index f3c0833e6..1eb391a81 100644 --- a/zone/cli/tests/cli_zone_state.cpp +++ b/zone/cli/tests/cli_zone_state.cpp @@ -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(); diff --git a/zone/zonedb.cpp b/zone/zonedb.cpp index 40baef1c7..5cac91b4c 100644 --- a/zone/zonedb.cpp +++ b/zone/zonedb.cpp @@ -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(v.size())) { + if (saved_count < static_cast(v.size())) { database.TransactionRollback(); LogError( "Failed to save all buffs for character [{}] [{}]. Expected [{}] rows, saved [{}]. Verify the `character_buffs` schema is up to date.",