From 72b31f6f6bf4e7aceb89c324e020269b1420f26a Mon Sep 17 00:00:00 2001 From: Robert MacGregor Date: Fri, 22 Oct 2021 10:44:54 -0400 Subject: [PATCH] * BugFix: Correct a crash caused by sfxProfile due to returning an address to a temporary value in getSoundFileName. --- Engine/source/sfx/sfxProfile.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Engine/source/sfx/sfxProfile.h b/Engine/source/sfx/sfxProfile.h index 4480e64de..e26079c8e 100644 --- a/Engine/source/sfx/sfxProfile.h +++ b/Engine/source/sfx/sfxProfile.h @@ -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; }