Skip to content
Snippets Groups Projects
Commit 77c3e589 authored by Oliver Schmidts's avatar Oliver Schmidts
Browse files

:bug: fix #176

parent ac956a58
Branches
Tags
No related merge requests found
......@@ -501,7 +501,10 @@ int Simulation::RunBody(double maxSimTime)
_nPeds = _building->GetAllPedestrians().size();
int initialnPeds = _nPeds;
// main program loop
while ( (_nPeds || !_agentSrcManager.IsCompleted() ) && t < maxSimTime)
while ( (_nPeds > 0 || (!_agentSrcManager.IsCompleted() && (_hybridSimManager != nullptr))) && t < maxSimTime)
//while ( _nPeds && t < maxSimTime)
{
t = 0 + (frameNr - 1) * _deltaT;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment