Gosuplus 1.0.18 → 1.0.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,15 +6,15 @@ module Gosuplus
6
6
  end
7
7
 
8
8
  def update
9
- @states[@index].update
9
+ @states[@index].update if @states.size > 0
10
10
  end
11
11
 
12
12
  def draw
13
- @states[@index].draw
13
+ @states[@index].draw if @states.size > 0
14
14
  end
15
15
 
16
16
  def handle_input(key, type)
17
- @states[@index].handle_input(key, type)
17
+ @states[@index].handle_input(key, type) if @states.size > 0
18
18
  end
19
19
 
20
20
  def next
@@ -1,3 +1,3 @@
1
1
  module Gosuplus
2
- VERSION = "1.0.18"
2
+ VERSION = "1.0.19"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: Gosuplus
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.18
4
+ version: 1.0.19
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: