]> git.tdb.fi Git - r2c2.git/blobdiff - source/libr2c2/track.cpp
Add a shortcut for getting the gauge of a TrackType
[r2c2.git] / source / libr2c2 / track.cpp
index 680e6ea8746cbe63ba7a2c797c8a952da6a625a4..7b6bef1de2d7e914846f67ec1b8c5f8b4eadfd64 100644 (file)
@@ -320,7 +320,7 @@ bool Track::link_to(Object &other)
        if(!otrack)
                return false;
 
-       float limit = type.get_appearance().get_gauge();
+       float limit = type.get_gauge();
        if(!flex && !otrack->get_flex())
                limit /= 10;
        limit *= limit;