Skip to content

Commit e5b1b93

Browse files
committed
Bob.destroy will now remove itself from its parent as it should.
1 parent 6ac3806 commit e5b1b93

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • v3/src/gameobjects/blitter

v3/src/gameobjects/blitter/Bob.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ var Bob = new Class({
3737

3838
destroy: function ()
3939
{
40+
this.parent.dirty = true;
41+
42+
this.parent.children.remove(this);
43+
4044
this.parent = undefined;
4145
this.frame = undefined;
4246
this.data = undefined;

0 commit comments

Comments
 (0)