mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-02 13:12:25 +00:00
Fix false error log: use < instead of != when checking ReplaceMany result in SaveBuffs
Co-authored-by: Valorith <76063792+Valorith@users.noreply.github.com>
This commit is contained in:
parent
e803f9f9d8
commit
15c15f0687
@ -2935,9 +2935,9 @@ 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())) {
|
||||
LogError(
|
||||
"Failed to save all buffs for character [{}] [{}]. Expected [{}] rows, saved [{}]. Verify the `character_buffs` schema is up to date.",
|
||||
"Failed to save all buffs for character [{}] [{}]. Expected at least [{}] rows saved, got [{}]. Verify the `character_buffs` schema is up to date.",
|
||||
client->GetCleanName(),
|
||||
client->CharacterID(),
|
||||
v.size(),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user