From de794901136061117bcb754551e6200a5089f05d Mon Sep 17 00:00:00 2001 From: Takkkom <76614532+Takkkom@users.noreply.github.com> Date: Wed, 1 Jun 2022 10:20:36 +0900 Subject: [PATCH] =?UTF-8?q?Footer=E3=82=92=E7=A9=BA=E3=81=AB=E3=81=97?= =?UTF-8?q?=E3=81=9F=E5=A0=B4=E5=90=88=E3=82=AF=E3=83=A9=E3=83=83=E3=82=B7?= =?UTF-8?q?=E3=83=A5=E3=81=99=E3=82=8B=E5=95=8F=E9=A1=8C=E3=82=92=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3=20(#215)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TJAPlayer3/Stages/07.Game/Taiko/CAct演奏DrumsFooter.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/TJAPlayer3/Stages/07.Game/Taiko/CAct演奏DrumsFooter.cs b/TJAPlayer3/Stages/07.Game/Taiko/CAct演奏DrumsFooter.cs index 258caa72..08bc6bb2 100644 --- a/TJAPlayer3/Stages/07.Game/Taiko/CAct演奏DrumsFooter.cs +++ b/TJAPlayer3/Stages/07.Game/Taiko/CAct演奏DrumsFooter.cs @@ -36,9 +36,12 @@ namespace TJAPlayer3 Random random = new Random(); var upDirs = System.IO.Directory.GetFiles(footerDir); - var upPath = upDirs[random.Next(0, upDirs.Length)]; + if (upDirs.Length > 0) + { + var upPath = upDirs[random.Next(0, upDirs.Length)]; - Mob_Footer = TJAPlayer3.tテクスチャの生成(upPath); + Mob_Footer = TJAPlayer3.tテクスチャの生成(upPath); + } } base.OnManagedリソースの作成();