From c33b14ed04728d51c03eb67ea299d99fbc948929 Mon Sep 17 00:00:00 2001 From: Edoardo Lolletti Date: Thu, 7 Mar 2024 16:36:12 +0100 Subject: [PATCH] replace lua_get with check_param --- libduel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libduel.cpp b/libduel.cpp index a06508d7..b9bdca36 100644 --- a/libduel.cpp +++ b/libduel.cpp @@ -2350,7 +2350,7 @@ LUA_STATIC_FUNCTION(SelectCardsFromCodes) { auto min = lua_get(L, 2); auto max = lua_get(L, 3); bool cancelable = lua_get(L, 4); - /*bool ret_index = */(void)lua_get(L, 5); + check_param(L, 5); lua_iterate_table_or_stack(L, 6, lua_gettop(L), [L, &select_codes = pduel->game_field->core.select_cards_codes]{ select_codes.emplace_back(lua_get(L, -1), static_cast(select_codes.size() + 1)); });