diff --git a/resources/scripts/terrain_project_importer.as b/resources/scripts/terrain_project_importer.as index c9ac3cea9d..211724d6ab 100644 --- a/resources/scripts/terrain_project_importer.as +++ b/resources/scripts/terrain_project_importer.as @@ -295,8 +295,7 @@ void initializeRacesData() result = game.getScriptVariable('races', races, terrnScriptNid); if (result < 0) { - stage = STAGE_ERROR; - error = " game.getScriptVariable() returned "+result; + // there are no races (race system not even loaded by the terrain script). return; } @@ -513,6 +512,13 @@ void getProject() //#region STAGE_WRITERACES void writeNextRace() { + if (races.raceList.length() == 0) + { + // write terrain anyway because of updated Name= + stage=STAGE_WRITETERRN2; + return; + } + for (uint i=0; i < races.raceList.length(); i++) { if (int(i) <= topWrittenRace)