mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-06-15 12:54:07 +00:00
gobot:: clear uninitialized indices on init_go_board
This commit is contained in:
parent
000726f450
commit
44e9c3e317
@ -59,6 +59,7 @@ void init_go_board() {
|
|||||||
current.captures[0] = 0;
|
current.captures[0] = 0;
|
||||||
current.captures[1] = 0;
|
current.captures[1] = 0;
|
||||||
shstream f; mapstream::save_geometry(f); current.geom = f.s;
|
shstream f; mapstream::save_geometry(f); current.geom = f.s;
|
||||||
|
indices.clear();
|
||||||
for(int i=0; i<isize(ac); i++)
|
for(int i=0; i<isize(ac); i++)
|
||||||
indices[ac[i]] = i;
|
indices[ac[i]] = i;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user