From 121f6e5095107171bdfc9b1a506192d09fa0fe35 Mon Sep 17 00:00:00 2001 From: Johannes Schultz Date: Sun, 1 Dec 2024 12:09:20 +0000 Subject: [PATCH] Merged revision(s) 22398 from branches/OpenMPT-1.29: [Fix] Fix compilation. ........ git-svn-id: https://source.openmpt.org/svn/openmpt/branches/OpenMPT-1.28@22399 56274372-70c3-4bfc-bfc3-4c3a0b034d27 --- soundlib/Load_mod.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/soundlib/Load_mod.cpp b/soundlib/Load_mod.cpp index 1ea9d60d2e6..e9991434e20 100644 --- a/soundlib/Load_mod.cpp +++ b/soundlib/Load_mod.cpp @@ -1249,9 +1249,9 @@ bool CSoundFile::ReadMOD(FileReader &file, ModLoadingFlags loadFlags) { #ifdef MPT_EXTERNAL_SAMPLES mpt::ustring filenameHint; - if(file.GetOptionalFileName()) + if(!file.GetFileName().empty()) { - const auto filename = file.GetOptionalFileName()->GetFilename().ToUnicode(); + const auto filename = file.GetFileName().GetFilename().ToUnicode(); filenameHint = mpt::format(U_(" ({}.nt or {}.as)"))(filename, filename); } AddToLog(LogWarning, mpt::format(U_("This Startrekker AM file is most likely missing its companion file{}. Synthesized instruments will not play."))(filenameHint));