Skip to content

Commit

Permalink
Fix PatchTree incorrect changeList entries on decode failure (rojo-rb…
Browse files Browse the repository at this point in the history
  • Loading branch information
kennethloeffler authored Oct 22, 2023
1 parent de4e7ea commit e19c464
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin/src/PatchTree.lua
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ function PatchTree.build(patch, instanceMap, changeListHeaders)
addProp(
prop,
if currentSuccess then currentValue else "[Error]",
if incomingSuccess then incomingValue else next(incoming)
if incomingSuccess then incomingValue else select(2, next(incoming))
)
end

Expand Down Expand Up @@ -359,7 +359,7 @@ function PatchTree.build(patch, instanceMap, changeListHeaders)
if success then
table.insert(changeList, { prop, "N/A", incomingValue })
else
table.insert(changeList, { prop, "N/A", next(incoming) })
table.insert(changeList, { prop, "N/A", select(2, next(incoming)) })
end
end

Expand Down

0 comments on commit e19c464

Please sign in to comment.