Remove bogus correction of sct_mobil from sct_prewrite()

It used literal 127 instead of sect_mob_max, it didn't check the lower
bound, and it didn't report the corruption.  From Chainsaw 3.

Having *working* sanity checks there would be nice.  Left for another
day.
This commit is contained in:
Markus Armbruster 2008-09-06 08:09:59 -04:00
parent 85eb288f97
commit e31ba545af

View file

@ -68,10 +68,6 @@ sct_prewrite(int id, void *ptr)
bridge_damaged(sp);
item_prewrite(sp->sct_item);
/* shouldn't happen, but... */
if (sp->sct_mobil > 127)
sp->sct_mobil = 0;
mil = sp->sct_item[I_MILIT];
civs = sp->sct_item[I_CIVIL];