Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/lua_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
Expand Down
Loading