Skip to content

Commit 42ad0ac

Browse files
authored
Add semicolons to WeightedRandomize
1 parent 302eba1 commit 42ad0ac

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/gameobjects/tilemap/components/WeightedRandomize.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ var WeightedRandomize = function (tileX, tileY, width, height, weightedIndexes,
4949
sum += weightedIndexes[j].weight;
5050
if (rand <= sum)
5151
{
52-
var chosen = weightedIndexes[j].index
52+
var chosen = weightedIndexes[j].index;
5353
randomIndex = Array.isArray(chosen)
5454
? chosen[Math.floor(Math.random() * chosen.length)]
55-
: chosen
55+
: chosen;
5656
}
5757
}
5858

0 commit comments

Comments
 (0)