Skip to content

Commit

Permalink
Fix potential null reference
Browse files Browse the repository at this point in the history
  • Loading branch information
irlbunny committed Sep 6, 2024
1 parent 1a3b4a2 commit 598bab9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion SiraUtil/Sabers/SiraSaber.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ internal void Construct(
_noteCutter = noteCutter;
_colorManager = colorManager;
_saberModelProvider = saberModelProvider;
_saberModelControllerInitData = saberModelControllerInitData;

if (saberModelControllerInitData != null)
_saberModelControllerInitData = saberModelControllerInitData;
}

internal void Setup<T>(SaberType saberType) where T : Saber
Expand Down

0 comments on commit 598bab9

Please sign in to comment.