summaryrefslogtreecommitdiff
path: root/examples/resources/lib/vector3.lua
diff options
context:
space:
mode:
Diffstat (limited to 'examples/resources/lib/vector3.lua')
-rw-r--r--examples/resources/lib/vector3.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/resources/lib/vector3.lua b/examples/resources/lib/vector3.lua
index b0f1be9..bf3e4a7 100644
--- a/examples/resources/lib/vector3.lua
+++ b/examples/resources/lib/vector3.lua
@@ -59,6 +59,8 @@ end
function Vector3:set( x, y, z )
if type( x ) == "table" then
x, y, z = table.unpack( x )
+ elseif type( x ) == "nil" then
+ x, y, z = 0, 0, 0
end
self.x = x