]> git.tdb.fi Git - r2c2.git/blobdiff - source/engineer/engineer.cpp
Make use of the unified storage class for other parts of Layout
[r2c2.git] / source / engineer / engineer.cpp
index b3c1f5f69960d970b2533dad00adc41f2c10b6de..e92c0ae161674c1b70d967f7fad5746245b5431a 100644 (file)
@@ -73,7 +73,7 @@ Engineer::Engineer(int argc, char **argv):
        layout.signal_train_added.connect(sigc::mem_fun(this, &Engineer::train_added));
        layout.signal_block_reserved.connect(sigc::hide<1>(sigc::mem_fun(this, &Engineer::reset_block_color)));
        layout.signal_emergency.connect(sigc::mem_fun(this, &Engineer::set_status));
-       const set<Block *> &blocks = layout.get_blocks();
+       const set<Block *> &blocks = layout.get_all<Block>();
        for(set<Block *>::const_iterator i=blocks.begin(); i!=blocks.end(); ++i)
                (*i)->get_sensor().signal_state_changed.connect(sigc::hide(sigc::bind(sigc::mem_fun(this, &Engineer::reset_block_color), sigc::ref(**i))));