Skip to content

Commit

Permalink
Fix self referential table encoding issue. Fixes: #280 Fixes: #305 (#342
Browse files Browse the repository at this point in the history
)
  • Loading branch information
thegrb93 authored Dec 12, 2020
1 parent 0a8417d commit d08a7c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/advdupe2/sh_codec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ local len
local tables,tablesLookup

enc[TYPE_TABLE] = function(obj) --table
tables = tables + 1
if not tablesLookup[obj] then
tables = tables + 1
tablesLookup[obj] = tables
else
buff:WriteByte(247)
Expand Down

0 comments on commit d08a7c9

Please sign in to comment.