1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-04-14 14:53:20 +00:00

reg3 rules:: correct possible_states size

This commit is contained in:
Zeno Rogue 2021-05-22 01:26:31 +02:00
parent af9d35dc1c
commit c5e979118a

View File

@ -1028,7 +1028,14 @@ EX namespace reg3 {
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)
possible_states[p.first.first].push_back(p.first.second);
}