Commit d63ea124 authored by Joseph Mirabel's avatar Joseph Mirabel Committed by Joseph Mirabel

Initialize Event::lastVal_

parent 62c7d215
......@@ -38,7 +38,8 @@ namespace dynamicgraph {
Event (const std::string& name) :
Entity (name),
checkSOUT ("Event("+name+")::output(bool)::check"),
conditionSIN(NULL,"Event("+name+")::input(bool)::condition")
conditionSIN(NULL,"Event("+name+")::input(bool)::condition"),
lastVal_ (2) // lastVal_ should be different true and false.
{
checkSOUT.setFunction
(boost::bind (&Event::check, this, _1, _2));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment