summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWuzzy <almikes@aol.com>2015-02-04 18:14:44 +0100
committerWuzzy <almikes@aol.com>2015-02-04 18:14:44 +0100
commit563db9cb4caeb5a3c936894f728f4a9c6636a172 (patch)
tree9c5b64d964360054f57385aede320ee485516db7
parentf046592824e8c481eb839912eef0e7fa298345cd (diff)
Set hudstate and hudids directly in add_all
-rw-r--r--init.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index 19d82d1..9184349 100644
--- a/init.lua
+++ b/init.lua
@@ -120,7 +120,9 @@ function hud.register_hudbar(identifier, text_color, label, use_icon, default_st
state.hidden = start_hide
state.value = start_value
state.max = start_max
- return ids, state
+
+ hud.hudtables[identifier].hudids = ids
+ hud.hudtables[identifier].hudstate = state
end
hudtable.identifier = identifier