Skip to content

Commit

Permalink
Merge pull request #1963 from ROBINTsrl/main
Browse files Browse the repository at this point in the history
Fixed bug with empty mission upload
  • Loading branch information
julianoes authored Jan 25, 2023
2 parents 444d6b6 + 7185dae commit 0eb5cb0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ void MissionRawServerImpl::set_current_item_complete()

void MissionRawServerImpl::set_current_seq(std::size_t seq)
{
if (_current_mission.size() < static_cast<size_t>(seq)) {
if (_current_mission.size() < static_cast<size_t>(seq) || _current_mission.empty()) {
return;
}

Expand Down

0 comments on commit 0eb5cb0

Please sign in to comment.