File diff r27158:8d6feca48662 → r27159:693b9615eaea
src/sound.cpp
Show inline comments
 
@@ -23,7 +23,7 @@
 

	
 
static SoundEntry _original_sounds[ORIGINAL_SAMPLE_COUNT];
 

	
 
static void OpenBankFile(const char *filename)
 
static void OpenBankFile(const std::string &filename)
 
{
 
	/**
 
	 * The sound file for the original sounds, i.e. those not defined/overridden by a NewGRF.
 
@@ -34,7 +34,7 @@ static void OpenBankFile(const char *fil
 
	memset(_original_sounds, 0, sizeof(_original_sounds));
 

	
 
	/* If there is no sound file (nosound set), don't load anything */
 
	if (filename == nullptr) return;
 
	if (filename.empty()) return;
 

	
 
	original_sound_file.reset(new RandomAccessFile(filename, BASESET_DIR));
 
	size_t pos = original_sound_file->GetPos();