Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
teramotodaiki committed May 19, 2020
1 parent a8ccf60 commit 4566a21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hackforplay/object/object.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1357,7 +1357,7 @@ export default class RPGObject extends enchant.Sprite implements N.INumbers {
if (!_ruleInstance) return;
const targetObject =
typeof target === 'string'
? this.getNearest(_ruleInstance.getCollection(name))
? this.getNearest(_ruleInstance.getCollection(target))
: target;
if (targetObject) {
this._flyToward = new Vector2(targetObject.mapX, targetObject.mapY)
Expand Down

0 comments on commit 4566a21

Please sign in to comment.