From 80f9266d54ec01309be2bce4d9b404d57f4f3f5e Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 4 Apr 2021 02:39:15 +0100 Subject: [PATCH] js: Fix a missing bit of pieceops.Insert Signed-off-by: Ian Jackson --- templates/script.ts | 1 + 1 file changed, 1 insertion(+) 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); } -- 2.30.2