summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWuzzy <almikes@aol.com>2016-09-01 16:36:42 +0200
committerWuzzy <almikes@aol.com>2016-09-01 16:36:42 +0200
commit963c5772dfd639d64c601bc12ccc22dae5bbed95 (patch)
tree7ef692228d00fe023c2316395ffcc6a2677d5c26
parent92c43d1c04dc509abe1b4a31fdfed9f1b6619a25 (diff)
Fix crash when opening awards after clearing
-rw-r--r--api.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/api.lua b/api.lua
index c1cad60..24f6067 100644
--- a/api.lua
+++ b/api.lua
@@ -157,7 +157,7 @@ function awards.disable(name)
end
function awards.clear_player(name)
- awards.players[name] = nil
+ awards.players[name] = {}
end
-- This function is called whenever a target condition is met.