@konoui/mjimage 0.0.23 → 0.0.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -74,7 +74,8 @@ var Hand = (function () {
74
74
  }
75
75
  }
76
76
  if (this.drawn != null) {
77
- var idx = tiles.findIndex(function (t) { return t.equals(t); });
77
+ var drawn_1 = this.drawn;
78
+ var idx = tiles.findIndex(function (t) { return t.equals(drawn_1); });
78
79
  if (idx < 0)
79
80
  throw new Error("[debug] hand has drawn: ".concat(this.drawn, " but no tile in hands"));
80
81
  tiles[idx] = tiles[idx].clone({ add: constants_1.OPERATOR.TSUMO });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konoui/mjimage",
3
- "version": "0.0.23",
3
+ "version": "0.0.24",
4
4
  "description": "Generates Mahjong tiles in SVG format.",
5
5
  "author": "konoui",
6
6
  "license": "MIT",