Sfoglia il codice sorgente

remindernote: false for unchanged, true for changed

AzaezelX 1 anno fa
parent
commit
ef858d726b
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      Engine/source/T3D/assets/SoundAsset.cpp

+ 2 - 2
Engine/source/T3D/assets/SoundAsset.cpp

@@ -448,7 +448,7 @@ bool SoundAsset::_setSoundFile(void* object, const char* index, const char* data
       id = dAtoui(index);
 
    if (pData->mSoundFile[id] == data)
-      return true;
+      return false;
 
    // Update.
    pData->mSoundFile[id] = data;
@@ -459,7 +459,7 @@ bool SoundAsset::_setSoundFile(void* object, const char* index, const char* data
 
    // Refresh the asset.
    pData->refreshAsset();
-   return false;
+   return true;
 }
 
 StringTableEntry SoundAsset::getAssetIdByFileName(StringTableEntry fileName)