aboutsummaryrefslogtreecommitdiff
path: root/src/game_tab
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2022-02-24 16:45:28 +0100
committerLoic Guegan <manzerbredes@mailbox.org>2022-02-24 16:45:28 +0100
commit829525acb94876a464a359548bce4faf0708bbc7 (patch)
tree066e933cf54d3408a2e1cc408bbcc03961599562 /src/game_tab
parentf99a7b699a6169003fc8b56f652de44c2e834ca5 (diff)
Update chessarbiter and improve pgn loader
Diffstat (limited to 'src/game_tab')
-rw-r--r--src/game_tab/HalfMove.cpp5
1 files changed, 4 insertions, 1 deletions
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;