mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-28 17:37:18 +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:
+2
-2
@@ -2935,9 +2935,9 @@ void ZoneDatabase::SaveBuffs(Client *client)
|
|||||||
|
|
||||||
if (!v.empty()) {
|
if (!v.empty()) {
|
||||||
const auto saved_count = CharacterBuffsRepository::ReplaceMany(database, v);
|
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(
|
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->GetCleanName(),
|
||||||
client->CharacterID(),
|
client->CharacterID(),
|
||||||
v.size(),
|
v.size(),
|
||||||
|
|||||||
Reference in New Issue
Block a user