1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-02-01 15:30:16 +00:00

fixed a crash due to not using PIU in fieldval_uniq_rand

This commit is contained in:
Zeno Rogue
2019-08-20 13:15:18 +02:00
parent 7aed1b8551
commit 5a45c1c062
2 changed files with 7 additions and 1 deletions

View File

@@ -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<n; k++) if(n%k == 0) return false;