product:: fixed windmap crash on Goldberg

This commit is contained in:
Zeno Rogue 2019-08-18 21:39:15 +02:00
parent d27f628527
commit 31baf32f50
2 changed files with 7 additions and 2 deletions

View File

@ -3389,7 +3389,7 @@ EX namespace windmap {
// cw.spin = 0;
neighbors.emplace_back();
auto &v = neighbors.back();
if(NONSTDVAR && !sphere && !archimedean)
if(NONSTDVAR && !sphere && !archimedean && !prod)
for(int l=0; l<S7; l++) {
v.push_back(getId(cw + cth + l + wstep + cth));
}

View File

@ -372,7 +372,12 @@ EX pair<int, bool> fieldval(cell *c) {
EX int fieldval_uniq(cell *c) {
if(experimental) return 0;
else if(prod) { auto c1 = product::get_where(c).first; return PIU(fieldval_uniq(c1)); }
else if(prod) {
auto c1 = product::get_where(c).first;
int res;
product::in_underlying_map([&] { res = fieldval_uniq(c1); });
return res;
}
else if(sphere) {
if(archimedean) return c->master->fiftyval;
#if CAP_IRR