Skip to content

Commit 3fedc24

Browse files
committed
Limit number of custom instruments to 240
1 parent 2212546 commit 3fedc24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/draw_window_instruments/draw_window_instruments.gml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function draw_window_instruments() {
4444
}
4545
if (draw_button2(x1 + 12, y1 + 318, 85, "Export sounds", (user_instruments == 0 || sounds == 0))) pack_instruments()
4646
c = 0
47-
if (draw_button2(x1 + 110, y1 + 318, 80, "Add", false) && wmenu = 0) {
47+
if (draw_button2(x1 + 110, y1 + 318, 80, "Add", user_instruments >= 240) && wmenu = 0) {
4848
changed = true
4949
insselect = ds_list_size(instrument_list)
5050
ds_list_add(instrument_list, new_instrument("Custom instrument #" + string(user_instruments + 1), "", true))

0 commit comments

Comments
 (0)