Fix initialization of realms in newcap
Broken in commit e1a68c72
, v4.3.12.
This commit is contained in:
parent
793cc220ec
commit
7a0252e40a
1 changed files with 3 additions and 1 deletions
|
@ -70,7 +70,9 @@ nat_reset(struct natstr *natp, enum nat_status stat, coord x, coord y)
|
||||||
else
|
else
|
||||||
memset(&absrealm, 0, sizeof(absrealm));
|
memset(&absrealm, 0, sizeof(absrealm));
|
||||||
for (i = 0; i < MAXNOR; i++) {
|
for (i = 0; i < MAXNOR; i++) {
|
||||||
ef_blank(EF_REALM, i, &newrealm);
|
ef_blank(EF_REALM, i + natp->nat_cnum * MAXNOR, &newrealm);
|
||||||
|
newrealm.r_cnum = natp->nat_cnum;
|
||||||
|
newrealm.r_realm = i;
|
||||||
newrealm.r_xl = absrealm.lx;
|
newrealm.r_xl = absrealm.lx;
|
||||||
newrealm.r_xh = absrealm.hx;
|
newrealm.r_xh = absrealm.hx;
|
||||||
newrealm.r_yl = absrealm.ly;
|
newrealm.r_yl = absrealm.ly;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue