diff --git a/source/Paths.hx b/source/Paths.hx index 6494de623..aa8c17fd5 100644 --- a/source/Paths.hx +++ b/source/Paths.hx @@ -25,12 +25,12 @@ class Paths var levelPath = getLibraryPathForce(file, currentLevel); if (OpenFlAssets.exists(levelPath, type)) return levelPath; - - levelPath = getLibraryPathForce(file, "shared"); - if (OpenFlAssets.exists(levelPath, type)) - return levelPath; } + var levelPath = getLibraryPathForce(file, "shared"); + if (OpenFlAssets.exists(levelPath, type)) + return levelPath; + return getPreloadPath(file); }