Fix zonedb.cpp: use commit_result.Success() instead of !commit_result for MySQLRequestResult

Co-authored-by: Valorith <76063792+Valorith@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-03-08 17:56:47 +00:00
parent bd92f19869
commit 2e62fb37bf

View File

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