diff --git a/src/control.cpp b/src/control.cpp index 34a3000..76a1f68 100644 --- a/src/control.cpp +++ b/src/control.cpp @@ -844,7 +844,11 @@ int BotControl::cmdNodeIterateCamp () { m_campIterator.push (i); } } - msg ("Ready for iteration. Type 'next' to go to first camp node."); + if (!m_campIterator.empty ()) { + msg ("Ready for iteration. Type 'next' to go to first camp node."); + return BotCommandResult::Handled; + } + msg ("Unable to begin iteration, camp points is not set."); } return BotCommandResult::Handled; }