X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibr2c2%2Fblockallocator.cpp;h=347960ee2ec584029a7bc66dffaaabb56de0cdad;hb=b0d402f30489b0618d21281781e1b8f683ed567b;hp=3b70f5a0ef6c2647c2e6ee44758e6af591802a67;hpb=5d782dbf80597cc2c99fb1c7f87b9ea1b537b684;p=r2c2.git diff --git a/source/libr2c2/blockallocator.cpp b/source/libr2c2/blockallocator.cpp index 3b70f5a..347960e 100644 --- a/source/libr2c2/blockallocator.cpp +++ b/source/libr2c2/blockallocator.cpp @@ -422,7 +422,7 @@ void BlockAllocator::reverse() void BlockAllocator::turnout_path_changing(Track &track) { - BlockList::iterator i = find_if(blocks.begin(), blocks.end(), BlockMatch(track.get_block())); + BlockList::iterator i = find_if(cur_blocks_end, blocks.end(), BlockMatch(track.get_block())); if(i!=blocks.end()) { ++i;