From b73fd989fb2b0d05bbe4159c1b16ac7e71206664 Mon Sep 17 00:00:00 2001 From: atolkachiov Date: Tue, 9 Aug 2022 02:46:45 +0300 Subject: [PATCH] Fix image saving in HelloDrone --- HelloDrone/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HelloDrone/main.cpp b/HelloDrone/main.cpp index a6c8a14465..ec94222b36 100644 --- a/HelloDrone/main.cpp +++ b/HelloDrone/main.cpp @@ -33,7 +33,7 @@ int main() const std::vector& response = client.simGetImages(request); std::cout << "# of images received: " << response.size() << std::endl; - if (!response.size()) { + if (response.size()) { std::cout << "Enter path with ending separator to save images (leave empty for no save)" << std::endl; std::string path; std::getline(std::cin, path);