Skip to content

Commit

Permalink
finishing touch
Browse files Browse the repository at this point in the history
  • Loading branch information
DexlerXD committed Dec 6, 2023
1 parent e6f4be1 commit ebd7312
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,10 @@ private void ListOfTargetsButtonOnPressed(BaseButton.ButtonEventArgs obj)
//SS220-antag-add-objective begin
private void AddTargetButtonOnWindowCreated(DefaultWindow window)
{
var addObjectiveWindow = (AddObjectiveWindow) window;
// This is dumb.
if (_selectedAntagonist is null)
return;
var addObjectiveWindow = (AddObjectiveWindow) window;
var antagSession = IoCManager.Resolve<IPlayerManager>().GetSessionById(_selectedAntagonist.SessionId);
addObjectiveWindow.SetAntagonist(antagSession);
}
Expand Down

0 comments on commit ebd7312

Please sign in to comment.