mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-06-08 17:34:08 +00:00
reg3 rules:: correct possible_states size
This commit is contained in:
parent
af9d35dc1c
commit
c5e979118a
9
reg3.cpp
9
reg3.cpp
@ -1028,7 +1028,14 @@ EX namespace reg3 {
|
|||||||
|
|
||||||
DEBB(DF_GEOM, ("removed cases = ", isize(bfs)));
|
DEBB(DF_GEOM, ("removed cases = ", isize(bfs)));
|
||||||
|
|
||||||
possible_states.resize(qstate);
|
// just the number of FV's
|
||||||
|
int pstable = 0;
|
||||||
|
for(auto& p: nonlooping_earlier_states)
|
||||||
|
pstable = max(pstable, p.first.first+1);
|
||||||
|
|
||||||
|
println(hlog, "pstable size = ", pstable, " (states: ", qstate, ")");
|
||||||
|
|
||||||
|
possible_states.resize(pstable);
|
||||||
for(auto& p: nonlooping_earlier_states)
|
for(auto& p: nonlooping_earlier_states)
|
||||||
possible_states[p.first.first].push_back(p.first.second);
|
possible_states[p.first.first].push_back(p.first.second);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user