0
0
mirror of https://github.com/sp-tarkov/server.git synced 2025-02-13 09:50:43 -05:00

Added null guards

This commit is contained in:
Chomp 2024-12-27 16:04:23 +00:00 committed by Refringe
parent 4740fa8cf1
commit cb68bf83c6
Signed by: Refringe
SSH Key Fingerprint: SHA256:t865XsQpfTeqPRBMN2G6+N8wlDjkgUCZF3WGW6O9N/k

View File

@ -756,7 +756,7 @@ export class SeasonalEventService {
} }
const mapData: ILocation = maps[mapName]; const mapData: ILocation = maps[mapName];
if (typeof mapData.base.Events.Khorovod?.Chance !== "undefined") { if (typeof mapData.base?.Events?.Khorovod?.Chance !== "undefined") {
mapData.base.Events.Khorovod.Chance = 100; mapData.base.Events.Khorovod.Chance = 100;
} }
} }