Skip to content

Commit

Permalink
Fix furniture not cleaning up properly
Browse files Browse the repository at this point in the history
  • Loading branch information
jankuss committed Feb 18, 2021
1 parent cf34e24 commit 4848297
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/objects/furniture/BaseFurniture.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,8 @@ export class BaseFurniture implements IFurnitureEventHandlers, IEventGroup {
PIXI.Ticker.shared.remove(this._onTicker);
this._cancelTicker && this._cancelTicker();
this._cancelTicker = undefined;

this._view?.destroy();
}

private _onTicker = () => {
Expand Down

0 comments on commit 4848297

Please sign in to comment.