From 3ee3ea836d4b14b125aeaedd5667ccb2556f6704 Mon Sep 17 00:00:00 2001 From: qqluqq Date: Sat, 30 May 2026 17:06:49 +0200 Subject: [PATCH 1/2] Update lua_api.c --- src/lua_api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lua_api.c b/src/lua_api.c index 197372eca3..0f27ff2435 100644 --- a/src/lua_api.c +++ b/src/lua_api.c @@ -1784,7 +1784,7 @@ static int lua_Set_music(lua_State *L) static int lua_Set_hand_graphic(lua_State *L) { PlayerNumber player_idx = luaL_checkPlayerSingle(L, 1); - long hand_idx = luaL_checkNamedCommand(L,1,powerhand_desc); + long hand_idx = luaL_checkNamedCommand(L,2,powerhand_desc); struct PlayerInfo * player = get_player(player_idx); player->hand_idx = hand_idx; From 6425ca90af4ad6064d93f31ec5c135aaa903a1e2 Mon Sep 17 00:00:00 2001 From: qqluqq Date: Sat, 30 May 2026 17:08:23 +0200 Subject: [PATCH 2/2] also fix lua_Dead_creatures_return_to_pool --- src/lua_api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lua_api.c b/src/lua_api.c index 0f27ff2435..377da77869 100644 --- a/src/lua_api.c +++ b/src/lua_api.c @@ -179,7 +179,7 @@ static int lua_Creature_available(lua_State *L) static int lua_Dead_creatures_return_to_pool(lua_State *L) { - TbBool return_to_pool = lua_toboolean(L, 3); + TbBool return_to_pool = lua_toboolean(L, 1); set_flag_value(game.mode_flags, MFlg_DeadBackToPool, return_to_pool); return 0; }