* BugFix: Correct a crash caused by sfxProfile due to returning an address to a temporary value in getSoundFileName.

This commit is contained in:
Robert MacGregor 2021-10-22 10:44:54 -04:00
parent 14ebeaf3eb
commit 72b31f6f6b

View file

@ -154,7 +154,7 @@ class SFXProfile : public SFXTrack
void unpackData( BitStream* stream );
/// Returns the sound filename.
const String& getSoundFileName() const { return mFilename; }
const String getSoundFileName() const { return mFilename; }
void setSoundFileName(StringTableEntry filename) { mFilename = filename; }
bool getPreload() const { return mPreload; }