This commit is contained in:
2021-04-11 02:06:52 +02:00
parent aaaf86b92b
commit 478f903bef
2 changed files with 5 additions and 5 deletions

View File

@@ -203,7 +203,7 @@ namespace ReallifeGamemode.Server.Job
selectedRoute = ROUTE_INTERMEDIATE.GetValueOrDefault(random.Next(1, ROUTE_INTERMEDIATE.Count));
}
if (selectedRoute.Count is 0)
if (selectedRoute is null || selectedRoute.Count is 0)
{
Console.WriteLine($"[ERROR:BUSJOB] Player {player.Name} has empty route Vector3 List.");
return;