Skip to content
Snippets Groups Projects
Commit 631f7f46 authored by Rui's avatar Rui Committed by Auke Kok
Browse files

sethome.get: Copy a return value

parent 178db045
No related branches found
No related tags found
No related merge requests found
......@@ -41,7 +41,12 @@ sethome.set = function(name, pos)
end
sethome.get = function(name)
return homepos[name]
local pos = homepos[name]
if pos then
return vector.new(pos)
else
return nil
end
end
sethome.go = function(name)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment