merge pull request #307 from vladislav4kz/patch-1

fix: display message about missing camp points
This commit is contained in:
jeefo 2022-02-20 00:32:18 +03:00 committed by GitHub
commit ec1f39abcd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}