瀏覽代碼

remindernote: false for unchanged, true for changed

AzaezelX 1 年之前
父節點
當前提交
ef858d726b
共有 1 個文件被更改,包括 2 次插入2 次删除
  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)