Fix string dialogs attempting to play garbage sounds

This commit is contained in:
2014-04-14 15:07:29 -04:00
parent 1ce6c6cc94
commit 854dae0576
2 changed files with 2 additions and 2 deletions

View File

@@ -459,7 +459,7 @@ cStrDlog& cStrDlog::setRecordHandler(record_callback_t rec){
} }
void cStrDlog::show(){ void cStrDlog::show(){
play_sound(sound); if(sound > 0) play_sound(sound);
dlg.run(); dlg.run();
} }

View File

@@ -25,7 +25,7 @@ typedef std::function<void(cDialog&)> record_callback_t;
class cStrDlog { class cStrDlog {
static std::string getFileName(short n_strs, ePicType type, bool hasTitle); static std::string getFileName(short n_strs, ePicType type, bool hasTitle);
cDialog dlg; cDialog dlg;
short sound; short sound = -1;
record_callback_t rec_f; record_callback_t rec_f;
bool hasRecord; bool hasRecord;
const ePicType type; const ePicType type;