We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c42d9c commit e0c4c30Copy full SHA for e0c4c30
1 file changed
code/scripting/api/objs/comm_order.cpp
@@ -60,7 +60,7 @@ ADE_FUNC(selectItem, l_Comm_Item, nullptr, "Selects the item and either proceeds
60
if (!ade_get_args(L, "o", l_Comm_Item.Get(¤t)))
61
return ADE_RETURN_FALSE;
62
63
- if (current < 0 || current > Num_menu_items) {
+ if (current < 0 || current >= Num_menu_items) {
64
LuaError(L, "Lua tried to select squad message that is not valid!");
65
66
}
0 commit comments