This commit is contained in:
Gray
2024-03-12 19:58:43 -04:00
parent 512fb16ee4
commit 72a2afcb72
9 changed files with 62 additions and 26 deletions

View File

@@ -201,10 +201,10 @@ public:
this->ProcessEvent(ClientClearDeathNotificationFn);
}
UAthenaPlayerMatchReport*& GetMatchReport()
UAthenaPlayerMatchReport** GetMatchReport()
{
static auto MatchReportOffset = GetOffset("MatchReport");
return Get<UAthenaPlayerMatchReport*>(MatchReportOffset);
static auto MatchReportOffset = GetOffset("MatchReport", false);
return MatchReportOffset == -1 ? nullptr : GetPtr<UAthenaPlayerMatchReport*>(MatchReportOffset);
}
void ClientSendTeamStatsForPlayer(FAthenaMatchTeamStats* TeamStats)