summaryrefslogtreecommitdiff
path: root/internal.lua
diff options
context:
space:
mode:
Diffstat (limited to 'internal.lua')
-rw-r--r--internal.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/internal.lua b/internal.lua
index 01747cf..5dc3795 100644
--- a/internal.lua
+++ b/internal.lua
@@ -179,6 +179,7 @@ end
--apply filter to the inventory list (create filtered copy of full one)
function unified_inventory.apply_filter(player, filter, search_dir)
+ if not player then return false end
local player_name = player:get_player_name()
local lfilter = string.lower(filter)
local ffilter