瀏覽代碼

Merge pull request #632 from Ragora/bugfix-get-sound-filename-crash

BugFix: Correct a crash caused by sfxProfile
Brian Roberts 4 年之前
父節點
當前提交
e658c95f90
共有 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; }