Fix displaying errors of map generation scripts

Displaying the error lead to a freeze.

Introduced in d842a134f9.
This commit is contained in:
phosit
2026-07-17 14:13:15 +02:00
parent 6244d25f90
commit e6f75f2c33
@@ -26,7 +26,7 @@ async function init(data)
"argument": data
} });
};
globalThis.cancelOnLoadGameError = async() =>
globalThis.cancelOnLoadGameError = async(errorMessage) =>
{
Engine.ResetCursor();
Engine.EndGame();