fix: use Character::GetID() in SetReputation to match DB schema key

Agent-Logs-Url: https://github.com/DarkflameUniverse/DarkflameServer/sessions/4cb00fe2-a85e-45f6-95c7-1ac972e244bc

Co-authored-by: aronwk-aaron <26027722+aronwk-aaron@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-04-05 08:23:13 +00:00
committed by GitHub
parent 7cb34ffca2
commit b058526e76

View File

@@ -251,7 +251,7 @@ void CharacterComponent::SetPvpEnabled(const bool value) {
void CharacterComponent::SetReputation(int64_t newValue) {
m_Reputation = newValue;
Database::Get()->SetCharacterReputation(m_Character->GetObjectID(), m_Reputation);
Database::Get()->SetCharacterReputation(m_Character->GetID(), m_Reputation);
GameMessages::SendUpdateReputation(m_Parent->GetObjectID(), m_Reputation, m_Parent->GetSystemAddress());
}