sethome.get: Copy a return value

This commit is contained in:
Rui 2016-11-05 11:17:05 +09:00 committed by Auke Kok
parent 178db04526
commit 631f7f46c7
1 changed files with 6 additions and 1 deletions

View File

@ -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)