From 6290ef42c6d0ef39158fc5526fae1f74ca3d8663 Mon Sep 17 00:00:00 2001 From: Vayle <76063792+Valorith@users.noreply.github.com> Date: Sun, 8 Mar 2026 12:22:30 -0400 Subject: [PATCH] Update zone/zonedb.cpp Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- zone/zonedb.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/zone/zonedb.cpp b/zone/zonedb.cpp index 8ff5277b7..40baef1c7 100644 --- a/zone/zonedb.cpp +++ b/zone/zonedb.cpp @@ -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)