Clear bots array upon meta unload.

This commit is contained in:
jeefo 2019-09-21 23:56:01 +03:00
commit b3e9024fb5
2 changed files with 5 additions and 5 deletions

View file

@ -893,6 +893,9 @@ CR_EXPORT int Meta_Detach (PLUG_LOADTIME now, PL_UNLOAD_REASON reason) {
graph.savePractice ();
util.disableSendTo ();
// make sure all stuff cleared
bots.destroy ();
return true;
}