Skip to content

Commit a093ed6

Browse files
authored
Fix a crash when reloading the game page after an hot-reload (#8114)
- Fix #8087
1 parent 39cf2f9 commit a093ed6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

GDJS/GDJS/IDE/ExporterHelper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,6 @@ bool ExporterHelper::ExportProjectForPixiPreview(
312312
ExportProjectData(fs, exportedProject, codeOutputDir + "/data.js",
313313
runtimeGameOptions, options.isInGameEdition,
314314
inGameEditorResources);
315-
includesFiles.push_back(codeOutputDir + "/data.js");
316315

317316
previousTime = LogTimeSpent("Project data export", previousTime);
318317
}
@@ -321,6 +320,7 @@ bool ExporterHelper::ExportProjectForPixiPreview(
321320
}
322321

323322
if (options.shouldReloadLibraries || options.shouldClearExportFolder) {
323+
includesFiles.push_back(codeOutputDir + "/data.js");
324324
// Copy all the dependencies and their source maps
325325
ExportIncludesAndLibs(includesFiles, options.exportPath, true);
326326
ExportIncludesAndLibs(resourcesFiles, options.exportPath, true);

0 commit comments

Comments
 (0)