mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-17 02:28:21 +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:
+1
-1
@@ -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.",
|
||||
|
||||
Reference in New Issue
Block a user