1
0

fix player repinfo destroy

This commit is contained in:
GenZmeY 2022-09-02 15:23:34 +03:00
parent 31db3849be
commit 5dd4279dd4

View File

@ -326,14 +326,20 @@ public function NotifyLogin(Controller C)
{
`Log_Trace();
CreateRepInfo(C);
if (!CreateRepInfo(C))
{
`Log_Error("Can't create RepInfo for:" @ C);
}
}
public function NotifyLogout(Controller C)
{
`Log_Trace();
DestroyRepInfo(C);
if (!DestroyRepInfo(C))
{
`Log_Error("Can't destroy RepInfo of:" @ C);
}
}
public function bool CreateRepInfo(Controller C)
@ -369,8 +375,8 @@ public function bool DestroyRepInfo(Controller C)
{
if (RepInfo.Owner == C)
{
RepInfo.SafeDestroy();
RepInfos.RemoveItem(RepInfo);
RepInfo.SafeDestroy();
return true;
}
}