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:
parent
85eb288f97
commit
e31ba545af
1 changed files with 0 additions and 4 deletions
|
@ -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];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue