Skip to content
This repository was archived by the owner on Aug 29, 2018. It is now read-only.

Commit ec902da

Browse files
committed
Fixed oversight, fixes #8
1 parent 6c7b143 commit ec902da

File tree

1 file changed

+2
-1
lines changed
  • Source/3DNUS_Material_Source/3DNUS Material Edition/3DNUS Material Edition

1 file changed

+2
-1
lines changed

Source/3DNUS_Material_Source/3DNUS Material Edition/3DNUS Material Edition/FormMain.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,8 @@ private void firmwdownload(YLS_Sysver sys, char region)
160160
sb.Append(chr);
161161
sb.Append(", ");
162162
}
163-
sb.Remove(sb.Length - 3, 2);
163+
if(sb.Length > 2)
164+
sb.Remove(sb.Length - 3, 2);
164165

165166
MessageBox.Show("Invalid region! Valid regions are:\r\n" + sb.ToString(), "Invalid region", MessageBoxButtons.OK, MessageBoxIcon.Error);
166167
return;

0 commit comments

Comments
 (0)