From feac29ea40b84898a55e3237b24d1f0aacff3017 Mon Sep 17 00:00:00 2001 From: Kenneth Loeffler Date: Sun, 22 Oct 2023 16:58:12 -0700 Subject: [PATCH] Fix PatchTree incorrect changeList entries on decode failure (#804) --- plugin/src/PatchTree.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/src/PatchTree.lua b/plugin/src/PatchTree.lua index 82e437eb..e67dbcd0 100644 --- a/plugin/src/PatchTree.lua +++ b/plugin/src/PatchTree.lua @@ -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 @@ -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