Skip to content

Commit

Permalink
fix #481
Browse files Browse the repository at this point in the history
  • Loading branch information
yanghuan committed Jan 10, 2024
1 parent 3822074 commit 7020564
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CSharp.lua/CoreSystem.Lua/CoreSystem/Array.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1693,7 +1693,7 @@ local MultiArray = {
Clone = function (this)
local array = { __rank__ = this.__rank__ }
tmove(this, 1, #this, 1, array)
return arrayFromTable(array, this.__genericT__)
return setmetatable(array, Array(this.__genericT__, #this.__rank__))
end
}

Expand Down

0 comments on commit 7020564

Please sign in to comment.