1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-03-25 04:47:02 +00:00

rogueviz cleanup fixup

This commit is contained in:
Zeno Rogue 2021-03-31 00:12:14 +02:00
parent fbea016f03
commit 19a1358607

View File

@ -913,6 +913,8 @@ void init(void *_vizid, flagtype _vizflags) {
int search_for = -1;
vector<reaction_t> cleanup;
void close() {
search_for = -1;
for(int i=0; i<isize(vdata); i++)
@ -925,6 +927,10 @@ void close() {
anygraph::coords.clear();
callhooks(hooks_close);
edgetypes.clear();
while(!cleanup.empty()) {
cleanup.back()();
cleanup.pop_back();
}
vizid = nullptr;
relmatrices.clear();
}