even more virtual function fix

This commit is contained in:
Flerp 2025-11-16 18:00:14 -08:00
parent 95b7467ead
commit d48e8ab81f

View File

@ -438,7 +438,7 @@ bool NoClipCommand::HandleClipCommand(ChatHandler* AChatHandler)
/* Class: NoClipPlayer */ /* Class: NoClipPlayer */
void NoClipPlayer::OnLogin(Player* APlayer) void NoClipPlayer::OnPlayerLogin(Player* APlayer)
{ {
if (APlayer && NC_Enable && NC_Announce_Enable) if (APlayer && NC_Enable && NC_Announce_Enable)
{ {
@ -450,7 +450,7 @@ void NoClipPlayer::OnLogin(Player* APlayer)
} }
} }
} }
void NoClipPlayer::OnBeforeLogout(Player* APlayer) void NoClipPlayer::OnPlayerBeforeLogout(Player* APlayer)
{ {
if (APlayer && NC_Enable && APlayer->CustomData.GetDefault<CustomPlayerInformation>("NoClip")->GetFlagNoClipEnabled()) if (APlayer && NC_Enable && APlayer->CustomData.GetDefault<CustomPlayerInformation>("NoClip")->GetFlagNoClipEnabled())
{ {