Skip to content

Commit 00e95f6

Browse files
committed
Added a check for when IR luminosity catalog has too many sources
1 parent b227d56 commit 00e95f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fast++-read_input.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1315,7 +1315,7 @@ bool read_lir(const options_t& opts, input_state_t& state) {
13151315
return false;
13161316
}
13171317

1318-
if (id != state.id[i]) {
1318+
if (i >= state.id.size() || id != state.id[i]) {
13191319
error("infrared luminosity and photometry catalogs do not match");
13201320
return false;
13211321
}

0 commit comments

Comments
 (0)