Skip to content

Commit 13f0e56

Browse files
authored
Lua: fix SetHandGraphic and DeadCreaturesReturnToPool (#4856)
1 parent 1d8fa35 commit 13f0e56

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/lua_api.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ static int lua_Creature_available(lua_State *L)
179179

180180
static int lua_Dead_creatures_return_to_pool(lua_State *L)
181181
{
182-
TbBool return_to_pool = lua_toboolean(L, 3);
182+
TbBool return_to_pool = lua_toboolean(L, 1);
183183
set_flag_value(game.mode_flags, MFlg_DeadBackToPool, return_to_pool);
184184
return 0;
185185
}
@@ -1784,7 +1784,7 @@ static int lua_Set_music(lua_State *L)
17841784
static int lua_Set_hand_graphic(lua_State *L)
17851785
{
17861786
PlayerNumber player_idx = luaL_checkPlayerSingle(L, 1);
1787-
long hand_idx = luaL_checkNamedCommand(L,1,powerhand_desc);
1787+
long hand_idx = luaL_checkNamedCommand(L,2,powerhand_desc);
17881788

17891789
struct PlayerInfo * player = get_player(player_idx);
17901790
player->hand_idx = hand_idx;

0 commit comments

Comments
 (0)