Skip to content

Commit 1db853e

Browse files
committed
fix issue with adding items to grid menu
1 parent b6b4239 commit 1db853e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

current-scripts/Demos/useful-scripts/scripts/grid_menu_functions/grid_menu_functions.gml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ function grid_menu_get_item_by_label(_menu, _label) {
9898
// - {boolean} silent_on_confirm
9999
function grid_menu_add_selectable(_x, _y, _config) {
100100
if (_x < 0 || _x >= ds_grid_width(items)
101-
|| _y < 0 || _x >= ds_grid_height(items))
101+
|| _y < 0 || _y >= ds_grid_height(items))
102102
return;
103103

104104
var _new = new MenuSelectable(_config);
@@ -122,7 +122,7 @@ function grid_menu_add_selectable(_x, _y, _config) {
122122
// - {boolean} silent_on_change
123123
function grid_menu_add_spinner(_x, _y, _config) {
124124
if (_x < 0 || _x >= ds_grid_width(items)
125-
|| _y < 0 || _x >= ds_grid_height(items))
125+
|| _y < 0 || _y >= ds_grid_height(items))
126126
return;
127127

128128
var _new = new MenuSpinner(_config);
@@ -145,7 +145,7 @@ function grid_menu_add_spinner(_x, _y, _config) {
145145
// - {boolean} silent_on_change
146146
function grid_menu_add_key_config(_x, _y, _config) {
147147
if (_x < 0 || _x >= ds_grid_width(items)
148-
|| _y < 0 || _x >= ds_grid_height(items))
148+
|| _y < 0 || _y >= ds_grid_height(items))
149149
return;
150150

151151
var _new = new MenuKeyConfig(_config);
@@ -161,7 +161,7 @@ function grid_menu_add_key_config(_x, _y, _config) {
161161
// - {string} label
162162
function grid_menu_add_divider(_x, _y, _config) {
163163
if (_x < 0 || _x >= ds_grid_width(items)
164-
|| _y < 0 || _x >= ds_grid_height(items))
164+
|| _y < 0 || _y >= ds_grid_height(items))
165165
return;
166166

167167
var _new = new MenuDivider(_config);

0 commit comments

Comments
 (0)