f8f03f1 - Fix inspect caching, should now properly cache for 60 sec
[wowui.git] / OmaCD / Inspect.lua
index 5c5fb5e..f1d2068 100644 (file)
@@ -94,8 +94,8 @@ function OmaInspect.Request(guid, id, callback, needItems, force)
     cached.cb = callback;
     cached.needItems = needItems;
     local elapsed = GetTime() - cached.time;
     cached.cb = callback;
     cached.needItems = needItems;
     local elapsed = GetTime() - cached.time;
-    if force or (not needItems and (not cached.talent or elapsed > 60)) or
-       (needItems and (not cached.weapon or elapsed > 60)) then
+    if force or (not needItems and (cached.talent == nil or elapsed > 60)) or
+       (needItems and (cached.weapon == nil or elapsed > 60)) then
         if not pending[guid] or inspecting ~= guid then -- don't send multiple inspects
             inspect(id);
         end
         if not pending[guid] or inspecting ~= guid then -- don't send multiple inspects
             inspect(id);
         end