]> git.tdb.fi Git - r2c2.git/commit
Avoid going past the end of route when a new one is set
authorMikko Rasa <tdb@tdb.fi>
Tue, 3 Feb 2015 14:23:01 +0000 (16:23 +0200)
committerMikko Rasa <tdb@tdb.fi>
Tue, 3 Feb 2015 14:23:01 +0000 (16:23 +0200)
commit2fec8b40d8cd953e36362773e440e50cc4f94a91
tree1aaa434147fd78ce5e7d168df4c2bb33606cc0a3
parenteb6c78e5a38dcf4513915b72d2dbe2e35e2958a1
Avoid going past the end of route when a new one is set

Calling stop_at(0) causes the block allocator to immediately resume
allocating blocks.  In certain circumstances this would cause an
allocation past the end of the route.
source/libr2c2/trainrouter.cpp