mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-26 08:49:37 +00:00
Insures against badly-placed locations.
This commit is contained in:
parent
1f539822ee
commit
942986aadc
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user