diff --git a/src/components/MoveTable.cpp b/src/components/MoveTable.cpp index b92cf76..5b654c6 100644 --- a/src/components/MoveTable.cpp +++ b/src/components/MoveTable.cpp @@ -351,7 +351,7 @@ std::uint32_t MoveTable::DrawVariations(CMI::HalfMove *m, std::uint32_t line, } void MoveTable::GetMoveXY(CMI::HalfMove* m, double &X, double &Y){ - if(MovesStates.count(m)>0){ + if(m != nullptr && MovesStates.count(m)>0){ X=MovesStates[m].Bound.x; Y=MovesStates[m].Bound.y; }