summaryrefslogtreecommitdiff
path: root/internal.lua
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2015-06-28 05:17:43 -0400
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2015-06-28 05:17:43 -0400
commit8338b406d3e142d0163c95fa9b7dd6e14f5ccec9 (patch)
tree52702ce06088f07f7eddbd6e48867239bafd277a /internal.lua
parent16e40a2e2249bd3530710b34d25006da9e85c27d (diff)
fix crash in waypoints?
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