1
0
forked from 0ad/0ad

Fix some error in rmgen.

Reviewed by: kalimaps
Refs: #6180
Differential Revision: https://code.wildfiregames.com/D4017
This was SVN commit r25570.
This commit is contained in:
Imarok 2021-05-25 21:26:48 +00:00
parent cf454fe533
commit 35601a7bb3

View File

@ -110,7 +110,7 @@ function addBluffs(constraint, size, deviation, fill, baseHeight)
constraint,
1);
if (!areasBluff.length)
if (!areasBluff.length || !areasBluff[0].getPoints().length)
continue;
// Get a random starting position for the baseline and the endline