Skip to content

Commit

Permalink
Fixed Key error
Browse files Browse the repository at this point in the history
Dont know how I messed up that one
  • Loading branch information
babyboucher committed Sep 11, 2020
1 parent 191d244 commit 505bfd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ZombieSuicideHotline/PlayerHandlers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public void OnRoundEnd()
public void OnPlayerRoleChange(ChangingRoleEventArgs ev)
{
Player player = ev.Player;
if (plugin.zombies[player.UserId].Disconnected)
if (this.plugin.zombies.ContainsKey(player.UserId))
{
plugin.zombies[player.UserId].Disconnected = false;
ev.NewRole = RoleType.Scp0492;
Expand Down

0 comments on commit 505bfd8

Please sign in to comment.