Skip to content

Commit 4366fbe

Browse files
sphis-sincoHundrec
authored andcommitted
Fix a crash when HARDCODED_CREDITS is disabled.
1 parent 987b384 commit 4366fbe

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

project.hxp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1385,6 +1385,11 @@ class Project extends HXProject
13851385
addAssetLibrary("default", shouldEmbed, shouldPreloadDefault);
13861386
addAssetPath("assets/preload", "assets", "default", ["*"], exclude, shouldEmbed, "assets");
13871387

1388+
if (!HARDCODED_CREDITS.isEnabled(this))
1389+
{
1390+
addAsset("assets/exclude/data/credits.json", "assets/data/credits.json", "default", shouldEmbed);
1391+
}
1392+
13881393
if (!FEATURE_ANIMATION_EDITOR.isEnabled(this))
13891394
removeAssetPath('assets/preload/data/ui/animation-editor', "default");
13901395

0 commit comments

Comments
 (0)