From 2ff9d5eb69f66a213596ecd8b82cdd9baa47bce4 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Thu, 3 Sep 2020 21:34:35 +0100 Subject: [PATCH] before refactor report --- src/api.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api.rs b/src/api.rs index 485a6c4a..e3088e25 100644 --- a/src/api.rs +++ b/src/api.rs @@ -249,7 +249,7 @@ impl ApiPieceOp for ApiPieceMove { -> (PieceUpdateOp<()>, Vec) { let pc = gs.pieces.byid_mut(piece).unwrap(); let (pos, clamped) = self.0.clamped(gs.table_size); - pc.pos = self.0; + pc.pos = pos; if clamped { Err(ApiPieceOpError::ReportViaUpdate(PieceOpError::PosOffTable))?; } -- 2.30.2