mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-04 02:42:26 +00:00
Update zone/zonedb.cpp
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
e359852ccf
commit
6290ef42c6
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user