From 5a45c1c0620227e7382fc9a0a3dda533574ea8cf Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Tue, 20 Aug 2019 13:15:18 +0200 Subject: [PATCH] fixed a crash due to not using PIU in fieldval_uniq_rand --- fieldpattern.cpp | 2 +- pattern2.cpp | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/fieldpattern.cpp b/fieldpattern.cpp index b7ce7b6e..30d7ccc1 100644 --- a/fieldpattern.cpp +++ b/fieldpattern.cpp @@ -30,7 +30,7 @@ struct fgeomextra { extern int subpathid; extern int subpathorder; -#define MWDIM (WDIM+1) +#define MWDIM (prod ? 3 : WDIM+1) bool isprime(int n) { for(int k=2; k