From 56e9f95656e368f4f524a29af1b27050370bed2a Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sat, 30 Nov 2019 19:32:43 +0100 Subject: [PATCH] fixed freeze when enabling cspin/cmirror without enabling csteps --- nonisotropic.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nonisotropic.cpp b/nonisotropic.cpp index a70e1a58..497a5c73 100644 --- a/nonisotropic.cpp +++ b/nonisotropic.cpp @@ -1303,7 +1303,7 @@ EX namespace product { hrmap_product() { current_spin_invalid = false; - if(cspin || cmirror) { + if((cspin || cmirror) && csteps) { in_underlying([&] { twisted = validate_spin(); if(!twisted) { current_spin_invalid = true; return; }