Browse Source

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

Robert MacGregor 3 năm trước cách đây
mục cha
commit
72b31f6f6b
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      Engine/source/sfx/sfxProfile.h

+ 1 - 1
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; }