fix false "error": "Cant destroy RepInfo"

This commit is contained in:
GenZmeY 2022-08-30 09:55:09 +03:00
parent f92bea7114
commit 5e4086c861

View File

@ -253,10 +253,7 @@ public function NotifyLogout(Controller C)
{
`Log_Trace();
if (!DestroyRepInfo(C))
{
`Log_Error("Can't destroy RepInfo of:" @ C);
}
DestroyRepInfo(C);
}
public function bool CreateRepInfo(Controller C)
@ -304,8 +301,8 @@ public function bool DestroyRepInfo(Controller C)
{
if (RepInfo.Owner == C)
{
RepInfo.SafeDestroy();
RepInfos.RemoveItem(RepInfo);
RepInfo.SafeDestroy();
return true;
}
}