XRogue: fix some uses of entire structs instead of their members.
Some calls to runto() were given a pointer to the player struct instead of to the player's coordinates. A call to death() was passed a pointer to a monster instead of the monster's type number.
This commit is contained in:
parent
e9c84b2637
commit
dafa5cc722
2 changed files with 3 additions and 3 deletions
|
|
@ -513,7 +513,7 @@ do_zap(struct thing *zapper, struct object *obj, coord *direction, int which,
|
|||
pstats.s_hpt = -1;
|
||||
msg("Your life has been sucked out from you! --More--");
|
||||
wait_for(' ');
|
||||
death(zapper);
|
||||
death(zapper->t_index);
|
||||
}
|
||||
else
|
||||
msg("You feel a great drain on your system.");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue