Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Apr 11, 2015
1 parent fcbeba4 commit a8d65bd
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -293,7 +293,7 @@ void handleLocation(dLocation location, int index, List<dMaterial> materialList,
material = null;
for (int i = 0; i < materialList.size(); i++) {
float perc = percents.get(i) / 100f;
if (CoreUtilities.getRandom().nextDouble() >= perc) {
if (CoreUtilities.getRandom().nextDouble() <= perc) {
material = materialList.get(i);
break;
}
Expand Down

0 comments on commit a8d65bd

Please sign in to comment.