Skip to content

Commit

Permalink
Added null check to fix problem with run flag
Browse files Browse the repository at this point in the history
  • Loading branch information
someperson authored May 21, 2021
1 parent a8955f9 commit 01f62fa
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Rebuilder/Rebuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1315,10 +1315,13 @@ public void LaunchGame()
p.Exited += new EventHandler(ProcessExit);
processes.Add(p);

form.run_button.Text = ConfigForm.run_button_kill;
if (patch_config.MultipleInstances)
if (form != null)
{
form.run_additional_button.Visible = true;
form.run_button.Text = ConfigForm.run_button_kill;
if (patch_config.MultipleInstances)
{
form.run_additional_button.Visible = true;
}
}

Log("Game launched successfully");
Expand Down

0 comments on commit 01f62fa

Please sign in to comment.