null guard

This commit is contained in:
CWX
2025-01-25 14:27:15 +00:00
parent f2683aef54
commit 99994a69bd
@@ -794,7 +794,7 @@ public class LocationLootGenerator(
List<Spawnpoint> forcedSpawnPoints, string locationName,
Dictionary<string, List<StaticAmmoDetails>> staticAmmoDist)
{
var lootToForceSingleAmountOnMap = _locationConfig.ForcedLootSingleSpawnById[locationName];
var lootToForceSingleAmountOnMap = _locationConfig.ForcedLootSingleSpawnById.GetValueOrDefault(locationName);
if (lootToForceSingleAmountOnMap is not null)
{
// Process loot items defined as requiring only 1 spawn position as they appear in multiple positions on the map