Explorar o código

Fixed bad return type for AssetManager::getAssetLooseFile

JeffR hai 7 meses
pai
achega
51a43d5be1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Engine/source/assets/assetManager.cpp

+ 1 - 1
Engine/source/assets/assetManager.cpp

@@ -2482,7 +2482,7 @@ const char* AssetManager::getAssetLooseFile(const char* pAssetId, const S32& ind
    {
       // No, so warn.
       Con::warnf("Asset Manager: Failed to get loose file for asset Id '%s' as it does not exist.", pAssetId);
-      return false;
+      return StringTable->EmptyString();
    }
 
    if(index < 0 || index >= pAssetDefinition->mAssetLooseFiles.size())