diff --git a/distribution.coffee b/distribution.coffee index 309ce74..5b0dd0d 100644 --- a/distribution.coffee +++ b/distribution.coffee @@ -65,8 +65,9 @@ for language in languages key = key.replace(filedir, '') spec[key] = data -for group in spec.game.groups - parseGroup(group) +if spec.game? + for group in spec.game.groups + parseGroup(group) for filename, value of distribution distribution[filename] = Math.round(value * 1000) / 1000