summaryrefslogtreecommitdiff
path: root/examples/automation_events/main.lua
diff options
context:
space:
mode:
Diffstat (limited to 'examples/automation_events/main.lua')
-rw-r--r--examples/automation_events/main.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/automation_events/main.lua b/examples/automation_events/main.lua
index 33589a4..3425ac6 100644
--- a/examples/automation_events/main.lua
+++ b/examples/automation_events/main.lua
@@ -23,7 +23,7 @@ function RL.init()
end
function RL.update( delta )
- local moveDir = Vec2:new()
+ local moveDir = Vec2:new( 0, 0 )
if RL.IsKeyDown( RL.KEY_RIGHT ) then
moveDir.x = 1