Explorar el Código

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

BugFix: Correct a crash caused by sfxProfile
Brian Roberts hace 3 años
padre
commit
e658c95f90
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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 );
       void unpackData( BitStream* stream );
 
 
       /// Returns the sound filename.
       /// Returns the sound filename.
-      const String& getSoundFileName() const { return mFilename; }
+      const String getSoundFileName() const { return mFilename; }
       void setSoundFileName(StringTableEntry filename) { mFilename = filename; }
       void setSoundFileName(StringTableEntry filename) { mFilename = filename; }
 
 
       bool getPreload() const { return mPreload; }
       bool getPreload() const { return mPreload; }