changeset 230:85f113524b19 1.0.39

Remove check for ITEM_OPENABLE string if not running on 5.1 client.
author James D. Callahan III <jcallahan@curse.com>
date Thu, 07 Feb 2013 13:53:30 -0600
parents 25bfbe8b4826
children 68ddfd7442bf
files Main.lua
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Main.lua	Wed Feb 06 10:27:38 2013 -0600
+++ b/Main.lua	Thu Feb 07 13:53:30 2013 -0600
@@ -515,8 +515,9 @@
         if not current_line then
             break
         end
+        local is_ptr = select(4, _G.GetBuildInfo()) ~= 50100
 
-        if current_line:GetText() == _G.ITEM_OPENABLE then
+        if is_ptr or current_line:GetText() == _G.ITEM_OPENABLE then
             table.wipe(current_action)
             current_action.target_type = AF.ITEM
             current_action.identifier = item_id