mirror of
https://github.com/sp-tarkov/modules.git
synced 2025-02-13 03:10:45 -05:00
Add nullguards to patch code
This commit is contained in:
parent
aa9a1af8c4
commit
3b1e7cf509
@ -155,10 +155,10 @@ namespace Aki.SinglePlayer.Models.Progression
|
||||
{
|
||||
// If player kills zryachiy or follower, force aggressor state
|
||||
// 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;
|
||||
_player.Profile.TradersInfo[_lightKeeperTid].SetStanding(-0.01);
|
||||
_player?.Profile.TradersInfo[_lightKeeperTid].SetStanding(-0.01f);
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user