Skip to content
Snippets Groups Projects
Commit d5409e65 authored by themarex's avatar themarex
Browse files

Fix crash when destructing BulletRobotLogger

git-svn-id: http://svn.code.sf.net/p/simox/code/trunk@707 042f3d55-54a8-47e9-b7fb-15903f145c44
parent 94fd3c44
No related branches found
No related tags found
No related merge requests found
......@@ -19,6 +19,12 @@ void BulletRobotLogger::stopLogging()
void BulletRobotLogger::writeToFile(const std::string& path)
{
// Nothing to log
if (targetAngleLog.size() == 0)
{
return;
}
std::ofstream output(path.c_str());
int num_frames = timestamps.size();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment