diff options
author | Bottinator22 <bottinator22@gmail.com> | 2025-03-02 20:18:31 -0800 |
---|---|---|
committer | Bottinator22 <bottinator22@gmail.com> | 2025-03-02 20:18:31 -0800 |
commit | 1af60db5b25143a8dd937b512c3ddfd2e275a4ab (patch) | |
tree | fe52e5a6ff11ac1c8cd34636d64f827cbb98bd2a /source/base/StarAssets.cpp | |
parent | 76a64738d521d69f214654638615387fdc1423c0 (diff) |
minor improvements
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 |