1
0
mirror of synced 2025-02-17 19:09:25 +01:00

OpenIndex caused crash fix attempt

This commit is contained in:
0aubsq 2022-03-30 18:05:44 +02:00
parent b022555f77
commit 60493cb190
2 changed files with 3 additions and 2 deletions

View File

@ -274,7 +274,7 @@ namespace TJAPlayer3
{
List<C曲リストード> list = TJAPlayer3.Songs管理.list曲ルート;
list.InsertRange(list.IndexOf(this.r現在選択中の曲) + 1, this.r現在選択中の曲.list子リスト);
int n回数 = this.r現在選択中の曲.Openindex;
int n回数 = Math.Min(list.Count() - 1, this.r現在選択中の曲.Openindex);
for (int index = 0; index <= n回数; index++)
this.r現在選択中の曲 = this.r次の曲(this.r現在選択中の曲);
list.RemoveAt(list.IndexOf(this.r現在選択中の曲.r親ード));

View File

@ -620,7 +620,7 @@ namespace TJAPlayer3
#region [ F7 TokkunMode ]
if (TJAPlayer3.Input管理.Keyboard.bキーが押された((int)SlimDXKeys.Key.F7))
{
if (TJAPlayer3.ConfigIni.nPlayerCount != 2)
if (TJAPlayer3.ConfigIni.nPlayerCount < 2)
{
TJAPlayer3.Skin.sound変更音.t再生する();
C共通.bToggleBoolian(ref TJAPlayer3.ConfigIni.bTokkunMode);
@ -704,6 +704,7 @@ namespace TJAPlayer3
{
// Todo : Add a small prompt to choose the difficulty
this.act曲リスト.tMenuContextTrigger(eMenuContext.SearchByDifficulty);
TJAPlayer3.Skin.sound決定音.t再生する();
goto Decided;
//this.act曲リスト.r現在選択中の曲.list子リスト = CSongDict.tFetchSongsByDifficulty(this.act曲リスト.r現在選択中の曲, (int)Difficulty.Oni, 8);
}