We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d8fa35 commit 13f0e56Copy full SHA for 13f0e56
1 file changed
src/lua_api.c
@@ -179,7 +179,7 @@ static int lua_Creature_available(lua_State *L)
179
180
static int lua_Dead_creatures_return_to_pool(lua_State *L)
181
{
182
- TbBool return_to_pool = lua_toboolean(L, 3);
+ TbBool return_to_pool = lua_toboolean(L, 1);
183
set_flag_value(game.mode_flags, MFlg_DeadBackToPool, return_to_pool);
184
return 0;
185
}
@@ -1784,7 +1784,7 @@ static int lua_Set_music(lua_State *L)
1784
static int lua_Set_hand_graphic(lua_State *L)
1785
1786
PlayerNumber player_idx = luaL_checkPlayerSingle(L, 1);
1787
- long hand_idx = luaL_checkNamedCommand(L,1,powerhand_desc);
+ long hand_idx = luaL_checkNamedCommand(L,2,powerhand_desc);
1788
1789
struct PlayerInfo * player = get_player(player_idx);
1790
player->hand_idx = hand_idx;
0 commit comments