]> git.tdb.fi Git - r2c2.git/commitdiff
Initialize the halted flag of dummy driver
authorMikko Rasa <tdb@tdb.fi>
Fri, 20 Feb 2015 09:50:54 +0000 (11:50 +0200)
committerMikko Rasa <tdb@tdb.fi>
Fri, 20 Feb 2015 09:50:54 +0000 (11:50 +0200)
source/libr2c2/dummy.cpp

index ba23449ad304a50fe99f043114b439795c0cc666..90638f63bd8c438b2cfa845a7c0d20173992df41 100644 (file)
@@ -11,6 +11,7 @@ namespace R2C2 {
 
 Dummy::Dummy(const Options &opts):
        power(true),
+       halted(false),
        turnout_delay(opts.get("turnout_delay", 0.0f)*Time::sec),
        turnout_fail_rate(opts.get("turnout_fail_rate", 0.0f)*RAND_MAX)
 { }