浏览代码

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

Robert MacGregor 3 年之前
父节点
当前提交
72b31f6f6b
共有 1 个文件被更改,包括 1 次插入1 次删除
  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; }