From 31baf32f5020ff7d1780a50ecf3a1f2d78753d2d Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sun, 18 Aug 2019 21:39:15 +0200 Subject: [PATCH] product:: fixed windmap crash on Goldberg --- complex.cpp | 2 +- pattern2.cpp | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/complex.cpp b/complex.cpp index 6743e41e..b4f9f077 100644 --- a/complex.cpp +++ b/complex.cpp @@ -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 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