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:
parent
cf454fe533
commit
35601a7bb3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user