diff --git a/Analyser/Static/DiskII/StaticAnalyser.cpp b/Analyser/Static/DiskII/StaticAnalyser.cpp index c60dfde4f..bdaae8f91 100644 --- a/Analyser/Static/DiskII/StaticAnalyser.cpp +++ b/Analyser/Static/DiskII/StaticAnalyser.cpp @@ -69,6 +69,7 @@ Analyser::Static::TargetList Analyser::Static::DiskII::GetTargets(const Media &m return targets; } else { targets.push_back(std::unique_ptr(AppleTarget(nullptr))); + targets.back()->media = media; return targets; } } @@ -119,5 +120,6 @@ Analyser::Static::TargetList Analyser::Static::DiskII::GetTargets(const Media &m } else { targets.push_back(std::unique_ptr(AppleTarget(sector_zero))); } + targets.back()->media = media; return targets; }