1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-23 03:32:32 +00:00

Insures against badly-placed locations.

This commit is contained in:
Thomas Harte 2020-01-13 22:49:12 -05:00
parent 1f539822ee
commit 942986aadc

View File

@ -188,8 +188,10 @@ class TrackConstructor {
auto location = locations.begin();
track_position = track_data_.begin();
while(location != locations.end()) {
assert(location->position < track_data_.end());
// Advance to location.position.
while(track_position != location->position) {
while(track_position < location->position) {
encoder->add_byte(*track_position);
++track_position;
}