From b776bab159016aa8459a6e70f56095932559091b Mon Sep 17 00:00:00 2001 From: hydrant Date: Tue, 13 Apr 2021 22:18:43 +0200 Subject: [PATCH] [HOTFIX] busfahrer crash --- ReallifeGamemode.Server/Job/BusDriverJob.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ReallifeGamemode.Server/Job/BusDriverJob.cs b/ReallifeGamemode.Server/Job/BusDriverJob.cs index e8eee500..969f1e87 100644 --- a/ReallifeGamemode.Server/Job/BusDriverJob.cs +++ b/ReallifeGamemode.Server/Job/BusDriverJob.cs @@ -565,6 +565,11 @@ namespace ReallifeGamemode.Server.Job return; } + if(!playerVehiclePair.ContainsKey(player)) + { + return; + } + if (JobManager.playerTimersJobVehicleRespawn.ContainsKey(player)) { JobManager.playerTimersJobVehicleRespawn[player].Stop();