Browse Source

Fixed a crash on zone bug if no filters were loaded yet.

master
atom0s 8 years ago
parent
commit
0cffdd0d40
  1. 2
      filters.lua

2
filters.lua

@ -155,7 +155,7 @@ end); @@ -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..

Loading…
Cancel
Save