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
No known key found for this signature in database
GPG key ID: C9430B600671C268

View file

@ -26,7 +26,7 @@ async function init(data)
"argument": data
} });
};
globalThis.cancelOnLoadGameError = async() =>
globalThis.cancelOnLoadGameError = async(errorMessage) =>
{
Engine.ResetCursor();
Engine.EndGame();