From: Ian Jackson Date: Sun, 4 Apr 2021 01:39:15 +0000 (+0100) Subject: js: Fix a missing bit of pieceops.Insert X-Git-Tag: otter-0.5.0~261 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=80f9266d54ec01309be2bce4d9b404d57f4f3f5e;p=otter.git js: Fix a missing bit of pieceops.Insert Signed-off-by: Ian Jackson --- diff --git a/templates/script.ts b/templates/script.ts index ca348f8f..7d40d712 100644 --- a/templates/script.ts +++ b/templates/script.ts @@ -1246,6 +1246,7 @@ pieceops.Insert = function } as any as PieceInfo; // fudge this, piece_modify_core will fix it pieces[piece] = p; p.uos = info.uos; + p.queued_moves = 0; piece_modify_core(piece, p, info, false); }