Browse Source

fix a nil error at line 22

Dana Olson 8 năm trước cách đây
mục cha
commit
46291aebf6
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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