0
0
mirror of https://github.com/sp-tarkov/modules.git synced 2025-02-13 06:10:45 -05:00

Add nullguards to patch code

This commit is contained in:
Dev 2023-07-30 11:22:00 +01:00
parent aa9a1af8c4
commit 3b1e7cf509

View File

@ -155,10 +155,10 @@ namespace Aki.SinglePlayer.Models.Progression
{ {
// If player kills zryachiy or follower, force aggressor state // If player kills zryachiy or follower, force aggressor state
// Also set players Lk standing to negative (allows access to quest chain (Making Amends)) // Also set players Lk standing to negative (allows access to quest chain (Making Amends))
if (player1?.KillerId == _player.ProfileId) if (player1?.KillerId == _player?.ProfileId)
{ {
_aggressor = true; _aggressor = true;
_player.Profile.TradersInfo[_lightKeeperTid].SetStanding(-0.01); _player?.Profile.TradersInfo[_lightKeeperTid].SetStanding(-0.01f);
} }
}; };