aboutsummaryrefslogtreecommitdiff
path: root/src/game_tab/left_panel/GameTabLeftPanel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game_tab/left_panel/GameTabLeftPanel.cpp')
-rw-r--r--src/game_tab/left_panel/GameTabLeftPanel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game_tab/left_panel/GameTabLeftPanel.cpp b/src/game_tab/left_panel/GameTabLeftPanel.cpp
index 71d44bf..70a09cd 100644
--- a/src/game_tab/left_panel/GameTabLeftPanel.cpp
+++ b/src/game_tab/left_panel/GameTabLeftPanel.cpp
@@ -80,7 +80,7 @@ void GameTabLeftPanel::OnPlay(wxCommandEvent &event) {
std::string fen = game->GetFen();
std::map<char, std::uint8_t> captures;
HalfMove *m = game->GetCurrentMove();
- if (m != NULL) {
+ if (m != nullptr) {
captures = m->GetLineCaptures();
}
}
@@ -89,7 +89,7 @@ void GameTabLeftPanel::Notify(bool animate, bool backward) {
std::string fen = game->GetFen();
std::map<char, std::uint8_t> captures;
HalfMove *m = game->GetCurrentMove();
- if (m != NULL) {
+ if (m != nullptr) {
captures = m->GetLineCaptures();
}