]> git.tdb.fi Git - r2c2.git/blobdiff - source/libmarklin/train.cpp
Move Endpoint inside TrackType
[r2c2.git] / source / libmarklin / train.cpp
index cdb8e67d169297925a627c4b7556338316c0d9b6..11ec776497e436c64eea49d3a8bcaecdf1e27e11 100644 (file)
@@ -990,7 +990,7 @@ unsigned Train::reserve_more()
 
                if(block->get_turnout_id())
                {
-                       const Endpoint &track_ep = track->get_type().get_endpoints()[track.entry()];
+                       const TrackType::Endpoint &track_ep = track->get_type().get_endpoints()[track.entry()];
                        bool multiple_paths = (track_ep.paths&(track_ep.paths-1));
 
                        if(multiple_paths || !last->get_turnout_id())