Skip to content

Commit

Permalink
Merge pull request #30 from someperson/runfix
Browse files Browse the repository at this point in the history
Added null check to fix problem with run flag
  • Loading branch information
itsmattkc authored Jul 12, 2021
2 parents a8955f9 + 01f62fa commit d32dff5
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 d32dff5

Please sign in to comment.