summaryrefslogtreecommitdiff
path: root/examples/resources/lib/vector2.lua
diff options
context:
space:
mode:
authorjussi2022-05-25 21:52:36 +0300
committerjussi2022-05-25 21:52:36 +0300
commit06f99406824b8bb03db17029279a0d139808cf6c (patch)
treec0d8e4ae8b234c95a669fe609a7039cb07ada94b /examples/resources/lib/vector2.lua
parent44e8b06603d91d398c0955f34da33d0242b7551a (diff)
downloadreilua-enhanced-06f99406824b8bb03db17029279a0d139808cf6c.tar.gz
reilua-enhanced-06f99406824b8bb03db17029279a0d139808cf6c.tar.bz2
reilua-enhanced-06f99406824b8bb03db17029279a0d139808cf6c.zip
Rest of mesh management functions.
Diffstat (limited to 'examples/resources/lib/vector2.lua')
-rw-r--r--examples/resources/lib/vector2.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/resources/lib/vector2.lua b/examples/resources/lib/vector2.lua
index 305f483..862718f 100644
--- a/examples/resources/lib/vector2.lua
+++ b/examples/resources/lib/vector2.lua
@@ -45,6 +45,8 @@ Vector2.meta = {
function Vector2:new( x, y )
if type( x ) == "table" then
x, y = table.unpack( x )
+ elseif type( x ) == "nil" then
+ x, y = 0, 0
end
local o = {