Replace getvec() by direct, read-only item access in some cases where
that's obviously correct.
This commit is contained in:
parent
99bfa19a92
commit
b1461faea5
23 changed files with 164 additions and 222 deletions
|
@ -170,10 +170,5 @@ upd_slmilcosts(natid n, int etu)
|
|||
int
|
||||
bank_income(struct sctstr *sp, int etu)
|
||||
{
|
||||
int vec[I_MAX + 1];
|
||||
|
||||
if (getvec(VT_ITEM, vec, (s_char *)sp, EF_SECTOR) <= 0)
|
||||
return 0;
|
||||
else
|
||||
return (int)(vec[I_BAR] * etu * bankint * sp->sct_effic / 100);
|
||||
return (int)(sp->sct_item[I_BAR] * etu * bankint * sp->sct_effic / 100);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue