Skip to content

Commit

Permalink
Fix assert check in wrong place
Browse files Browse the repository at this point in the history
  • Loading branch information
nsubiron committed Jul 5, 2019
1 parent 416851b commit e4dd26a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion LibCarla/source/carla/client/detail/Simulator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ namespace detail {
while (frame > episode.GetState()->GetTimestamp().frame) {
std::this_thread::yield();
}
RELEASE_ASSERT(frame == episode.GetState()->GetTimestamp().frame);
}

// ===========================================================================
Expand Down Expand Up @@ -117,6 +116,7 @@ namespace detail {
DEBUG_ASSERT(_episode != nullptr);
const auto frame = _client.SendTickCue();
SynchronizeFrame(frame, *_episode);
RELEASE_ASSERT(frame == _episode->GetState()->GetTimestamp().frame);
return frame;
}

Expand Down

0 comments on commit e4dd26a

Please sign in to comment.