From 829525acb94876a464a359548bce4faf0708bbc7 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Thu, 24 Feb 2022 16:45:28 +0100 Subject: Update chessarbiter and improve pgn loader --- src/game_tab/HalfMove.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/game_tab') diff --git a/src/game_tab/HalfMove.cpp b/src/game_tab/HalfMove.cpp index e59794b..1a6b5aa 100644 --- a/src/game_tab/HalfMove.cpp +++ b/src/game_tab/HalfMove.cpp @@ -118,7 +118,10 @@ HalfMove *HalfMove::GetMainline() { return (mainline); } HalfMove::HalfMove(pgnp::HalfMove *m, std::string initial_fen): capture(' ') { chessarbiter::ChessArbiter arbiter; arbiter.Setup(initial_fen); - arbiter.Play(arbiter.ParseSAN(m->move)); + bool work=arbiter.Play(arbiter.ParseSAN(m->move)); + if(!work){ + wxLogDebug("Bug! %s",m->move); + } char capture=arbiter.GetCapture(); if(capture != ' '){ this->capture=capture; -- cgit v1.2.3