Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lua/matrix.lua
Original file line number Diff line number Diff line change
Expand Up @@ -740,9 +740,9 @@ end
function matrix.copy( m1 )
local docopy = matrix.type( m1 ) == "number" and num_copy or t_copy
local mtx = {}
for i = 1,#m1[1] do
for i = 1,#m1 do
mtx[i] = {}
for j = 1,#m1 do
for j = 1,#m1[1] do
mtx[i][j] = docopy( m1[i][j] )
end
end
Expand Down