[HOTFIX] fix medic heal task server crash

This commit is contained in:
hydrant
2021-04-15 00:15:51 +02:00
parent 1ddb5164ff
commit ecca103970
2 changed files with 3 additions and 2 deletions

View File

@@ -263,7 +263,7 @@ namespace ReallifeGamemode.Server.Factions.Medic
{
player.SetData("healauftrag", false);
var medicPlayer = PlayerService.GetPlayerByNameOrId(task.MedicName);
if (task.MedicName != "none")
if (medicPlayer != null)
{
medicPlayer.TriggerEvent("destroyMedicTaskCheckpoint");
}