Fix initialization of realms in newcap

Broken in commit e1a68c72, v4.3.12.
This commit is contained in:
Markus Armbruster 2008-04-06 09:49:47 +02:00
parent 793cc220ec
commit 7a0252e40a

View file

@ -70,7 +70,9 @@ nat_reset(struct natstr *natp, enum nat_status stat, coord x, coord y)
else
memset(&absrealm, 0, sizeof(absrealm));
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_xh = absrealm.hx;
newrealm.r_yl = absrealm.ly;