diff options
Diffstat (limited to 'src/game_tab/right_panel/LiveEngineDialog.cpp')
| -rw-r--r-- | src/game_tab/right_panel/LiveEngineDialog.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game_tab/right_panel/LiveEngineDialog.cpp b/src/game_tab/right_panel/LiveEngineDialog.cpp index 2413d0b..64d75e3 100644 --- a/src/game_tab/right_panel/LiveEngineDialog.cpp +++ b/src/game_tab/right_panel/LiveEngineDialog.cpp @@ -112,7 +112,8 @@ void LiveEngineDialog::OnTimerTick(wxTimerEvent &event) { ids.push_back(line.first); } std::sort(ids.begin(),ids.end()); - + if(ids.size()>0) + eval->eval=lines[ids[0]].score_cp; // Now fill eval and lines_list for (int &id:ids) { auto const &line=lines[id]; |
