mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-04 02:42:26 +00:00
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:
parent
6290ef42c6
commit
bd92f19869
@ -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();
|
||||
|
||||
@ -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.",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user