Skip to content

Commit

Permalink
- fix for non terminating EventHandling in Cpp-Runtime
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@21275 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Marcus Walther committed Jun 25, 2014
1 parent a141edb commit 784f8ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SimulationRuntime/cpp/Core/System/EventHandling.cpp
Expand Up @@ -49,8 +49,8 @@ void EventHandling::initialize(IEvent* system,int dim,init_prevars_type init_pre
if(_conditions1)
delete[] _conditions1;

_conditions0 = new bool[dim];
_conditions1 = new bool[dim];
_conditions0 = new bool[_event_system->getDimZeroFunc()];
_conditions1 = new bool[_event_system->getDimZeroFunc()];
}
/**
Returns the help vector
Expand Down

0 comments on commit 784f8ad

Please sign in to comment.