(do_conv) Move the initialization of the natp to be inside sector loop, this
allows the deity to use the research level of the sector owner. This also fixes the use of an uninitialized sector data structure.
This commit is contained in:
parent
542709fae3
commit
c469d1f179
1 changed files with 1 additions and 1 deletions
|
@ -81,13 +81,13 @@ do_conv(struct nstr_sect nstr, int uwtoconvert, int for_real)
|
|||
struct nstr_item ni;
|
||||
long cost = 0;
|
||||
|
||||
natp = getnatp(sect.sct_own);
|
||||
totaluw = 0;
|
||||
while (nxtsct(&nstr, §)) {
|
||||
if (!player->owner)
|
||||
continue;
|
||||
if (sect.sct_oldown == player->cnum)
|
||||
continue;
|
||||
natp = getnatp(sect.sct_own);
|
||||
maxpop = max_pop(natp->nat_level[NAT_RLEV], §);
|
||||
civ = sect.sct_item[I_CIVIL];
|
||||
mil = sect.sct_item[I_MILIT];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue