Merge pull request #5641 from samme/fix/UpdateList-shutdown

Fix scene PRE_UPDATE handlers removed at scene shutdown
This commit is contained in:
Richard Davey 2021-04-13 13:33:52 +01:00 committed by GitHub
commit 3c3b32ec77
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -199,7 +199,7 @@ var UpdateList = new Class({
var eventEmitter = this.systems.events;
eventEmitter.off(SceneEvents.PRE_UPDATE, this.preUpdate, this);
eventEmitter.off(SceneEvents.PRE_UPDATE, this.update, this);
eventEmitter.off(SceneEvents.UPDATE, this.sceneUpdate, this);
eventEmitter.off(SceneEvents.SHUTDOWN, this.shutdown, this);
},