diff --git a/src/graph.cpp b/src/graph.cpp index 1baeab8..6f9cf17 100644 --- a/src/graph.cpp +++ b/src/graph.cpp @@ -673,7 +673,7 @@ void BotGraph::add (int type, const Vector &pos) { } // autosave nodes here and there - if (++m_autoSaveCount > cv_graph_auto_save_count.int_ ()) { + if (cv_graph_auto_save_count.bool_ () && ++m_autoSaveCount > cv_graph_auto_save_count.int_ ()) { if (saveGraphData ()) { ctrl.msg ("Nodes has been autosaved..."); }