summaryrefslogtreecommitdiff
path: root/api.lua
diff options
context:
space:
mode:
Diffstat (limited to 'api.lua')
-rw-r--r--api.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/api.lua b/api.lua
index 3dc9620..1d47014 100644
--- a/api.lua
+++ b/api.lua
@@ -140,6 +140,11 @@ function awards.register_achievement(name, def)
-- Add Award
awards.def[name] = def
+
+ local tdef = awards.def[name]
+ if def.description == nil and tdef.getDefaultDescription then
+ def.description = tdef:getDefaultDescription()
+ end
end
function awards.enable(name)