Skip to content

Commit

Permalink
fixing the problem that when one audio file doesn't exist that no oth…
Browse files Browse the repository at this point in the history
…er audio file is played
  • Loading branch information
cpfr committed Oct 18, 2024
1 parent 6b61a7b commit 2c6904d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/dialog/dialog_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -227,13 +227,14 @@ void DialogManager::playCharacterVoice(const std::string &file)
try
{
jngl::play(file);
last_played_audio = file;
}
catch(std::exception&)
{
jngl::debugLn("Audiofile does not exist: " + file);
last_played_audio = "";
}

last_played_audio = file;
}

void DialogManager::playCharacterAnimation(const std::string &character, const std::string &id)
Expand Down

0 comments on commit 2c6904d

Please sign in to comment.