Skip to content

Commit

Permalink
Fix NullReferenceException on victory screen
Browse files Browse the repository at this point in the history
  • Loading branch information
Azn9 committed Feb 19, 2023
1 parent 7e77918 commit 2d84279
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions AccuracyIndicator/Patch/SceneChangePatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ internal static class VictoryPatch
{
private static void Postfix()
{
if (Main.InGameIndicator is null) // Patch may be called twice
return;

var meanDelay = Main.InGameIndicator.GetMeanDelay();
var report = Main.InGameIndicator.GetReport();

Expand Down
6 changes: 3 additions & 3 deletions AccuracyIndicator/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.3.0")]
[assembly: AssemblyFileVersion("1.3.0")]
[assembly: AssemblyVersion("1.3.1")]
[assembly: AssemblyFileVersion("1.3.1")]

[assembly: MelonInfo(typeof(Main), "Accuracy Indicator", "1.3.0", "Azn9", "https://github.com/Azn9/MDAccuracyIndicatorMod")]
[assembly: MelonInfo(typeof(Main), "Accuracy Indicator", "1.3.1", "Azn9", "https://github.com/Azn9/MDAccuracyIndicatorMod")]
[assembly: MelonGame("PeroPeroGames", "MuseDash")]

0 comments on commit 2d84279

Please sign in to comment.