Fix test for capability engineer in lnd_hit_mine()
Bogus array index, unpredictable result, can crash the server. Broken in commitef7ea893
, v4.3.24. (cherry picked from commit7506039f1b
)
This commit is contained in:
parent
b62025e82c
commit
62b93e56e2
1 changed files with 1 additions and 1 deletions
|
@ -862,7 +862,7 @@ lnd_hit_mine(struct lndstr *lp)
|
|||
nreport(lp->lnd_own, N_LHIT_MINE, 0, 1);
|
||||
|
||||
m = MINE_LDAMAGE();
|
||||
if (lchr[lp->lnd_uid].l_flags & L_ENGINEER)
|
||||
if (lchr[lp->lnd_type].l_flags & L_ENGINEER)
|
||||
m /= 2;
|
||||
|
||||
landdamage(lp, m);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue