mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-05 07:52:25 +00:00
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:
parent
bd92f19869
commit
2e62fb37bf
@ -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()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user