AzaezelX 1 月之前
父节点
当前提交
73abc69a82
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Templates/BaseGame/game/core/clientServer/scripts/server/connectionToClient.tscript

+ 2 - 2
Templates/BaseGame/game/core/clientServer/scripts/server/connectionToClient.tscript

@@ -364,8 +364,8 @@ function GameConnection::onDrop(%this, %reason)
    {
       %hasGameMode = callGamemodeFunction("onClientLeaveGame", %this);
       // Cleanup the player
-      if (isObject(%client.player))
-         %client.player.delete();
+      if (isObject(%this.player))
+         %this.player.delete();
    }
    
    removeFromServerGuidList( %this.guid );