mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-04-23 22:25:26 +00:00
Fix PatchTree incorrect changeList entries on decode failure (#804)
This commit is contained in:
@@ -233,7 +233,7 @@ function PatchTree.build(patch, instanceMap, changeListHeaders)
|
|||||||
addProp(
|
addProp(
|
||||||
prop,
|
prop,
|
||||||
if currentSuccess then currentValue else "[Error]",
|
if currentSuccess then currentValue else "[Error]",
|
||||||
if incomingSuccess then incomingValue else next(incoming)
|
if incomingSuccess then incomingValue else select(2, next(incoming))
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -359,7 +359,7 @@ function PatchTree.build(patch, instanceMap, changeListHeaders)
|
|||||||
if success then
|
if success then
|
||||||
table.insert(changeList, { prop, "N/A", incomingValue })
|
table.insert(changeList, { prop, "N/A", incomingValue })
|
||||||
else
|
else
|
||||||
table.insert(changeList, { prop, "N/A", next(incoming) })
|
table.insert(changeList, { prop, "N/A", select(2, next(incoming)) })
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user