From d14c7c40c949f5768f1834e25ede9799e3c8a089 Mon Sep 17 00:00:00 2001 From: Lucas Nicodemus Date: Sun, 1 Jan 2012 23:18:18 -0700 Subject: [PATCH] Fix players "leaving" when they never joined. --- TShockAPI/TShock.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/TShockAPI/TShock.cs b/TShockAPI/TShock.cs index 9c258133..7a7dbb5a 100644 --- a/TShockAPI/TShock.cs +++ b/TShockAPI/TShock.cs @@ -651,6 +651,7 @@ namespace TShockAPI private void OnLeave(int ply) { + var tsplr = Players[ply]; Players[ply] = null;