Skip to content

Commit

Permalink
Correctly pass boarding ship to pilot board hook
Browse files Browse the repository at this point in the history
  • Loading branch information
ids1024 committed Mar 22, 2015
1 parent 943086d commit 8b4ceb3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@ void player_board (void)
hparam[0].u.lp.pilot = p->id;
hparam[1].type = HOOK_PARAM_SENTINEL;
hooks_runParam( "board", hparam );
pilot_runHook(p, PILOT_HOOK_BOARD);
hparam[0].u.lp.pilot = PLAYER_ID;
pilot_runHookParam(p, PILOT_HOOK_BOARD, hparam, 1);

if (board_stopboard) {
board_boarded = 0;
Expand Down

0 comments on commit 8b4ceb3

Please sign in to comment.