mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-31 09:06:46 +00:00
Enforce suppressed buff persistence schema
This commit is contained in:
+10
-1
@@ -2934,7 +2934,16 @@ void ZoneDatabase::SaveBuffs(Client *client)
|
||||
}
|
||||
|
||||
if (!v.empty()) {
|
||||
CharacterBuffsRepository::ReplaceMany(database, v);
|
||||
const auto saved_count = CharacterBuffsRepository::ReplaceMany(database, v);
|
||||
if (saved_count != static_cast<int>(v.size())) {
|
||||
LogError(
|
||||
"Failed to save all buffs for character [{}] [{}]. Expected [{}] rows, saved [{}]. Verify the `character_buffs` schema is up to date.",
|
||||
client->GetCleanName(),
|
||||
client->CharacterID(),
|
||||
v.size(),
|
||||
saved_count
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user