From 81b8f1372386f8a82863657803b0e6f51a31c05e Mon Sep 17 00:00:00 2001 From: Jens Pitkanen Date: Thu, 22 Aug 2019 00:16:24 +0300 Subject: [PATCH] Fix erroneous error message --- Assets/Scripts/Audio/MusicPlayer.cs | 2 +- Assets/Scripts/Effects/DebrisLauncher.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/Scripts/Audio/MusicPlayer.cs b/Assets/Scripts/Audio/MusicPlayer.cs index b176283..0558eab 100644 --- a/Assets/Scripts/Audio/MusicPlayer.cs +++ b/Assets/Scripts/Audio/MusicPlayer.cs @@ -22,7 +22,7 @@ namespace Saltosion.OneWeapon.Audio { public class MusicPlayer : MonoBehaviour { private static MusicPlayer Singleton; - private static int SingletonSceneIndex; + private static int SingletonSceneIndex = -1; [Header("Audio files")] public AudioClip[] MusicClips; diff --git a/Assets/Scripts/Effects/DebrisLauncher.cs b/Assets/Scripts/Effects/DebrisLauncher.cs index 47c4902..38c7194 100644 --- a/Assets/Scripts/Effects/DebrisLauncher.cs +++ b/Assets/Scripts/Effects/DebrisLauncher.cs @@ -9,7 +9,7 @@ namespace Saltosion.OneWeapon.Effects { public class DebrisLauncher : MonoBehaviour { private static DebrisLauncher Singleton; - private static int SingletonSceneIndex; + private static int SingletonSceneIndex = -1; public GameObject StructuralParticlePrefab; public GameObject WoodParticlePrefab;