Update zone/zonedb.cpp

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Vayle 2026-03-08 12:22:30 -04:00 committed by GitHub
parent e359852ccf
commit 6290ef42c6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2950,7 +2950,15 @@ void ZoneDatabase::SaveBuffs(Client *client)
}
}
database.TransactionCommit();
const auto commit_result = database.TransactionCommit();
if (!commit_result) {
database.TransactionRollback();
LogError(
"Failed to commit buff save transaction for character [{}] [{}].",
client->GetCleanName(),
client->CharacterID()
);
}
}
void ZoneDatabase::LoadBuffs(Client *client)