Fix oops recovery in lnd_set_tech()

Broken in commit 0219bf08.
This commit is contained in:
Markus Armbruster 2010-06-19 14:13:30 +02:00
parent 8c12432327
commit 0d8ee6ee6c

View file

@ -1196,7 +1196,7 @@ lnd_set_tech(struct lndstr *lp, int tlev)
struct lchrstr *lcp = lchr + lp->lnd_type; struct lchrstr *lcp = lchr + lp->lnd_type;
if (CANT_HAPPEN(tlev < lcp->l_tech)) if (CANT_HAPPEN(tlev < lcp->l_tech))
tlev = 0; tlev = lcp->l_tech;
lp->lnd_tech = tlev; lp->lnd_tech = tlev;
} }