]> git.tdb.fi Git - r2c2.git/blobdiff - source/designer/extendtool.h
Don't crash if a train has no router
[r2c2.git] / source / designer / extendtool.h
index 69e184aceae37afc7ce3837725d9b0bfc3535ed9..866d258a68e6e4f72b6ac5b1c99e187e2b909b82 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef EXTENDTOOL_H_
 #define EXTENDTOOL_H_
 
+#include <map>
 #include <set>
 #include <vector>
 #include "libr2c2/object.h"
@@ -10,6 +11,8 @@
 class ExtendTool: public Tool
 {
 private:
+       std::map<float, const R2C2::TrackType *> types_by_length;
+       unsigned max_preference;
        std::vector<R2C2::TrackIter> unlinked_endpoints;
        std::vector<R2C2::Track *> extend_tracks;