Mercurial > wow > wowdb-profiler
changeset 269:463b0f117b1b
Minor cleanup.
author | James D. Callahan III <jcallahan@curse.com> |
---|---|
date | Wed, 20 Mar 2013 18:28:25 -0500 |
parents | b6036060c096 |
children | e1566483082c |
files | Comments.lua |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/Comments.lua Wed Mar 20 13:02:29 2013 -0500 +++ b/Comments.lua Wed Mar 20 18:28:25 2013 -0500 @@ -343,12 +343,13 @@ function CreateCursorComment() local data_type, data, data_subtype, subdata = _G.GetCursorInfo() + local comment_func = CURSOR_DATA_FUNCS[data_type] - if not CURSOR_DATA_FUNCS[data_type] then + if not comment_func then WDP:Print("Unable to determine comment subject from cursor.") return end - CURSOR_DATA_FUNCS[data_type](DATA_TYPE_MAPPING[data_type] or data_type:upper(), data, data_subtype, subdata) + comment_func(DATA_TYPE_MAPPING[data_type] or data_type:upper(), data, data_subtype, subdata) end end