summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/file_group.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/file_group.cc b/src/lib/file_group.cc
index 27137196e..56a5c2c59 100644
--- a/src/lib/file_group.cc
+++ b/src/lib/file_group.cc
@@ -84,9 +84,9 @@ FileGroup::ensure_open_path (size_t p) const
_current_file->close();
}
- auto file = dcp::File(_paths[_current_path], "rb");
+ auto file = dcp::File(_paths[p], "rb");
if (!file) {
- throw OpenFileError(_paths[_current_path], file.open_error(), OpenFileError::READ);
+ throw OpenFileError(_paths[p], file.open_error(), OpenFileError::READ);
}
_current_path = p;