Skip to content

Commit

Permalink
Merged revision(s) 22398 from branches/OpenMPT-1.29:
Browse files Browse the repository at this point in the history
[Fix] Fix compilation.
........


git-svn-id: https://source.openmpt.org/svn/openmpt/branches/OpenMPT-1.28@22399 56274372-70c3-4bfc-bfc3-4c3a0b034d27
  • Loading branch information
sagamusix committed Dec 1, 2024
1 parent 53bcb8c commit 121f6e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions soundlib/Load_mod.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 121f6e5

Please sign in to comment.