Browse Source

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

BugFix: Correct a crash caused by sfxProfile
Brian Roberts 3 years ago
parent
commit
e658c95f90
1 changed files with 1 additions and 1 deletions
  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; }