From 0cffdd0d4049eb4e5f87ff70fe11b511e547f258 Mon Sep 17 00:00:00 2001 From: atom0s Date: Wed, 30 Nov 2016 21:09:17 -0800 Subject: [PATCH] Fixed a crash on zone bug if no filters were loaded yet. --- filters.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filters.lua b/filters.lua index 8f25ecb..4a6beee 100644 --- a/filters.lua +++ b/filters.lua @@ -155,7 +155,7 @@ end); -- desc: Called when our addon receives an incoming packet. --------------------------------------------------------------------------------------------------- ashita.register_event('incoming_packet', function(id, size, data) - if (id == 0xB4) then + if (id == 0xB4 and filters.current ~= nil and #filters.current > 0) then local realpacket = data:totable(); -- Send the filter update packet..