diff --git a/src/lua_api.c b/src/lua_api.c index 197372eca3..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; } @@ -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;