diff options
Diffstat (limited to 'source/base/StarAssets.cpp')
-rw-r--r-- | source/base/StarAssets.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/base/StarAssets.cpp b/source/base/StarAssets.cpp index 7fad6be..8622b87 100644 --- a/source/base/StarAssets.cpp +++ b/source/base/StarAssets.cpp @@ -369,7 +369,7 @@ Assets::Assets(Settings settings, StringList assetSources) { auto type = AssetTypeNames.getLeft(script.getString("type")); auto path = script.getString("path"); auto components = AssetPath::split(path); - validatePath(components, type == AssetType::Json, type == AssetType::Image); + validatePath(components, type == AssetType::Json || type == AssetType::Image, type == AssetType::Image); auto asset = getAsset(AssetId{type, std::move(components)}); // make this asset never unload |