diff options
Diffstat (limited to 'src/game_tab')
| -rw-r--r-- | src/game_tab/HalfMove.cpp | 5 |
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; |
