Skip to content

Commit 4d0584f

Browse files
committed
fix multichrom crash in non-sex models
1 parent 599511e commit 4d0584f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/species.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ void Species::_MakeHaplosomeMetadataRecords(void)
262262
}
263263

264264
// loop from female to male, then break out
265-
if (sex == IndividualSex::kFemale)
265+
if (sex_enabled_ && (sex == IndividualSex::kFemale))
266266
{
267267
sex = IndividualSex::kMale;
268268
focal_metadata_1 = hap_metadata_1M_;

0 commit comments

Comments
 (0)