Skip to content

Commit 3080322

Browse files
committed
hot fix
1 parent 738e122 commit 3080322

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

build/plugins/tmlib.bulletml.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ tm.define("tm.bulletml.Bullet", {
2727

2828
this.setPosition(this.runner.x, this.runner.y);
2929
this.runner.onVanish = function() {
30-
bullet.remove();
31-
};
30+
if (this.parent) this.remove();
31+
}.bind(this);
3232
},
3333

3434
update: function() {

src/plugins/tmlib.bulletml.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ tm.define("tm.bulletml.Bullet", {
2727

2828
this.setPosition(this.runner.x, this.runner.y);
2929
this.runner.onVanish = function() {
30-
bullet.remove();
31-
};
30+
if (this.parent) this.remove();
31+
}.bind(this);
3232
},
3333

3434
update: function() {

0 commit comments

Comments
 (0)