Skip to content

Commit a15bf1f

Browse files
committed
Fix oopsie
1 parent ca7fe90 commit a15bf1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/notation/kif.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ export function parseKifHand(rules: Rules, handPart: string): Result<Hand, KifEr
252252
['一', '二', '三', '四', '五', '六', '七', '八', '九', '十'].includes(piece[i])
253253
)
254254
countStr += piece[i++];
255-
const count = (Math.max(kanjiToNumber(countStr) ?? 1), 1) + hand.get(role);
255+
const count = Math.max(kanjiToNumber(countStr) ?? 1, 1) + hand.get(role);
256256
hand.set(role, count);
257257
}
258258
}

0 commit comments

Comments
 (0)