Fix index out of bounds exception with IsBossMusic when negative ids are used

rabi_display
wcko87 8 years ago
parent 9459f045d5
commit 53e3e1a0c4
  1. 2
      rabi_splitter_WPF/RabiEnums.cs

@ -234,7 +234,7 @@ namespace rabi_splitter_WPF
public static bool IsBossMusic(int musicId)
{
return musicId < _isBossMusic.Length && _isBossMusic[musicId];
return 0 <= musicId && musicId < _isBossMusic.Length && _isBossMusic[musicId];
}
public static Tuple<int, string, string> GetNextHammerLevel(int exp) {

Loading…
Cancel
Save