Skip to content

Commit 89e4289

Browse files
authored
Fix WeightedRandomize.js
1 parent 42ad0ac commit 89e4289

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/gameobjects/tilemap/components/WeightedRandomize.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ var WeightedRandomize = function (tileX, tileY, width, height, weightedIndexes,
5353
randomIndex = Array.isArray(chosen)
5454
? chosen[Math.floor(Math.random() * chosen.length)]
5555
: chosen;
56+
break;
5657
}
5758
}
5859

0 commit comments

Comments
 (0)