From c8476ea568c65c12986eb04fc6497a9eac52fef9 Mon Sep 17 00:00:00 2001 From: Yord Date: Sat, 3 Oct 2015 22:21:11 +0200 Subject: [PATCH] Small bug fix for stats --- ikrpg.appcache | 2 +- static/javascripts/generator.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ikrpg.appcache b/ikrpg.appcache index 88bf0f6..0acc2df 100644 --- a/ikrpg.appcache +++ b/ikrpg.appcache @@ -1,5 +1,5 @@ CACHE MANIFEST -# 2015-10-03 +# 2015-10-03 v2 CACHE: diff --git a/static/javascripts/generator.js b/static/javascripts/generator.js index 6b59924..6c16d2f 100644 --- a/static/javascripts/generator.js +++ b/static/javascripts/generator.js @@ -4143,7 +4143,7 @@ var ikrpg = ikrpg || {}; character["s"+(index+1)]["sum"] = statValue + value; } } - if(stats.length > 1) { + if(stats && stats.length > 1) { var stat = stats[1]; var lowerStat = stat.toLowerCase(); index += 1;