Skip to content

Commit

Permalink
fixed missing return value
Browse files Browse the repository at this point in the history
  • Loading branch information
Robosturm committed Jan 19, 2025
1 parent 1c4687e commit dcdd3cf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions coreengine/audiomanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,7 @@ void AudioManager::slotSetMuteInternal(bool value)

bool AudioManager::tryAddMusic(QString file, qint64 startPointMs, qint64 endPointMs)
{
bool success = false;
#ifdef AUDIOSUPPORT
if (!m_noAudio)
{
Expand All @@ -574,13 +575,15 @@ bool AudioManager::tryAddMusic(QString file, qint64 startPointMs, qint64 endPoin
{
m_player->m_player.stop();
addMusicToPlaylist(currentPath, startPointMs, endPointMs);
success = true;
}
else
{
CONSOLE_PRINT("Unable to locate music file: " + currentPath, GameConsole::eERROR);
}
}
#endif
return success;
}

void AudioManager::SlotAddMusic(QString file, qint64 startPointMs, qint64 endPointMs)
Expand Down

0 comments on commit dcdd3cf

Please sign in to comment.