Browse Source

fix a nil error at line 22

Dana Olson 8 years ago
parent
commit
46291aebf6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      misc/joypads/joypads.gd

+ 1 - 1
misc/joypads/joypads.gd

@@ -9,7 +9,7 @@ extends Node2D
 
 # Member variables
 var joy_num
-var cur_joy
+var cur_joy = -1
 var axis_value
 
 const DEADZONE = 0.2