summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-09-11 23:08:32 +0200
committerCarl Hetherington <cth@carlh.net>2024-09-11 23:08:32 +0200
commit179e362688a5a533f771942cde5126c0b11c7d08 (patch)
treebd54107cadb732f90b8272ce3a0021dba4a16ac3
parent8a5e685080844921d02978f81057d2ac574b0fc6 (diff)
Fix stupid bug introduced in 5db3eda9c6f0
-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;