瀏覽代碼

Fixes #118

tags/v0.1.3^2
Big Bad Waffle 7 年之前
父節點
當前提交
9ce32103eb
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      src/server/components/trade.js

+ 2
- 2
src/server/components/trade.js 查看文件

@@ -66,7 +66,7 @@ define([
if ((target != null) && (target.id == null))
target = this.obj.instance.objects.objects.find(o => o.id == target);
else if (targetName != null)
target = this.obj.instance.objects.objects.find(o => o.name.toLowerCase() == targetName);
target = this.obj.instance.objects.objects.find(o => ((o.name) && (o.name.toLowerCase() == targetName)));

this.target = null;

@@ -230,7 +230,7 @@ define([
if ((target != null) && (target.id == null))
target = this.obj.instance.objects.objects.find(o => o.id == target);
else if (targetName != null)
target = this.obj.instance.objects.objects.find(o => o.name.toLowerCase() == targetName);
target = this.obj.instance.objects.objects.find(o => ((o.name) && (o.name.toLowerCase() == targetName)));

this.target = null;



Loading…
取消
儲存