craftyjs/Crafty — Issue #230: randomElementFromArray tries to access non-integer array subscripts
Author: Kurper
Created: 2012-03-04 18:35:06+00:00
State: open

line 7963 of crafty.js, "return array[array.length * Math.random()];" should have a math.floor(). right now it's trying to access array[6.315] and stuff, which is nearly guaranteed to fail.