mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-27 14:37:16 +00:00
fixed a crash bug in {4,3,5}
This commit is contained in:
parent
dbfce6cf31
commit
1ecd525217
6
reg3.cpp
6
reg3.cpp
@ -417,8 +417,10 @@ EX namespace reg3 {
|
||||
set<int> plane_indices;
|
||||
for(auto cw: plane) plane_indices.insert(cw.at->master->fieldval);
|
||||
|
||||
int fN = isize(f->matrices);
|
||||
|
||||
set<int> nwi;
|
||||
for(int i=0; i<currfp_n(); i++) {
|
||||
for(int i=0; i<fN; i++) {
|
||||
bool ok = true;
|
||||
for(auto o: plane_indices) {
|
||||
int j = f->gmul(i, o * f->local_group) / f->local_group;
|
||||
@ -444,7 +446,7 @@ EX namespace reg3 {
|
||||
int u = 0;
|
||||
for(int a=0; a<5; a++) {
|
||||
for(int o: plane_indices) {
|
||||
int j = currfp_gmul(u, o * f->local_group) / f->local_group;
|
||||
int j = f->gmul(u, o * f->local_group) / f->local_group;
|
||||
allcells()[j]->master->zebraval |= 2;
|
||||
}
|
||||
u = f->gmul(u, gpow);
|
||||
|
Loading…
Reference in New Issue
Block a user