]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/teamplay.qc
Fix copy-paste error.
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / teamplay.qc
index e52538de476aef07fa80cc07e2df33462fe64939..abc5df1d726a0e730e2c55402690112ad2cd9fc4 100644 (file)
@@ -222,14 +222,14 @@ bool SetPlayerTeam(entity player, int team_index, int type)
                }
                else
                {
-                       if (!CS(this).just_joined)
+                       if (!CS(player).just_joined)
                        {
                                Send_Notification(NOTIF_ALL, NULL, MSG_INFO, INFO_QUIT_SPECTATE,
                                        player.netname);
                        }
                        else
                        {
-                               CS(this).just_joined = false;
+                               CS(player).just_joined = false;
                        }
                }
                KillPlayerForTeamChange(player);