mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2025-05-20 17:50:47 -04:00
Merge pull request #793 from FunkinCrew/cyn0x8/module-ondestroy-fix
[PUBLIC PR] Fix an issue when interacting with modules during onDestroy()
This commit is contained in:
commit
cb16a8d55e
1 changed files with 0 additions and 1 deletions
|
@ -125,7 +125,6 @@ class ModuleHandler
|
||||||
for (key => value in moduleCache)
|
for (key => value in moduleCache)
|
||||||
{
|
{
|
||||||
ScriptEventDispatcher.callEvent(value, event);
|
ScriptEventDispatcher.callEvent(value, event);
|
||||||
moduleCache.remove(key);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
moduleCache.clear();
|
moduleCache.clear();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue