Skip to content

Commit db09e8f

Browse files
committed
fix: 修复背包仓库搜索设置报错的问题
1 parent 79f749c commit db09e8f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

MY_BagEx/src/MY_BagEx_GenericFilters.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,9 @@ local function Unhook()
374374
local frame = Station.Lookup('Normal/BigBagPanel')
375375
if frame and frame.bMYBagExHook then
376376
frame.bMYBagExHook = nil
377-
frame:Lookup('WndEditBox_KeyWord'):Destroy()
377+
if frame:Lookup('WndEditBox_KeyWord') then
378+
frame:Lookup('WndEditBox_KeyWord'):Destroy()
379+
end
378380
UnhookTableFunc(frame, 'OnFrameKeyDown', OnFrameKeyDown)
379381
end
380382

0 commit comments

Comments
 (0)