Skip to content

Commit bc7e4ac

Browse files
authored
Merge pull request #106 from jiaxuyang/develop
Fix Collectionizer bug when minCount is greater than maxCount.
2 parents afe55ad + e1623f9 commit bc7e4ac

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Tynamix.ObjectFiller/Plugins/List/Collectionizer.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,9 @@ public Collectionizer(TRandomizer randomizerToUse, uint minCount, uint maxCount)
8383

8484
if (minCount > maxCount)
8585
{
86+
var temp = maxCount;
8687
maxCount = minCount;
87-
minCount = maxCount;
88+
minCount = temp;
8889
}
8990

9091
this.randomizerToUse = randomizerToUse;

0 commit comments

Comments
 (0)