Changeset

6563:f0a2bdfd0cea

Merge with 0.10
author Matthew Wild <mwild1@gmail.com>
date Sat, 31 Jan 2015 12:25:00 +0000
parents 6562:2b5ced5ca31f (diff) 6561:bae84401a02c (current diff)
children 6564:bcf32653cab7 6572:c60c199cc7f0
files
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/util/statistics.lua	Fri Jan 30 15:38:54 2015 +0100
+++ b/util/statistics.lua	Sat Jan 31 12:25:00 2015 +0000
@@ -8,7 +8,7 @@
 	local n = pc/100 * (length + 1);
 	local k, d = m_floor(n), n%1;
 	if k == 0 then
-		return arr[1];
+		return arr[1] or 0;
 	elseif k >= length then
 		return arr[length];
 	end