Skip to content

Commit

Permalink
Fix avatars without the leave lot action crashing when leaving lots
Browse files Browse the repository at this point in the history
  • Loading branch information
riperiperi committed Nov 25, 2024
1 parent 62466ac commit 7424f18
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions TSOClient/tso.simantics/Entities/VMAvatar.cs
Original file line number Diff line number Diff line change
Expand Up @@ -643,8 +643,15 @@ public void UserLeaveLot()
var routine = tree.routine;

var qaction = GetAction(LEAVE_LOT_ACTION, this, Thread.Context, false);
qaction.Flags |= TTABFlags.FSOSkipPermissions;
if (qaction != null) Thread.EnqueueAction(qaction);
if (qaction != null)
{
qaction.Flags |= TTABFlags.FSOSkipPermissions;
Thread.EnqueueAction(qaction);
}
else
{
KillTimeout = FORCE_DELETE_TIMEOUT;
}

if (KillTimeout == -1) KillTimeout = 0;
}
Expand Down

0 comments on commit 7424f18

Please sign in to comment.