Skip to content

Commit

Permalink
Hotfix: Do not define Gosu::KbP as :KB_P!
Browse files Browse the repository at this point in the history
  • Loading branch information
jlnr committed Mar 26, 2017
1 parent bfc0486 commit 084e533
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/gosu/compat.rb
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ module Button; end
when :KB_RIGHT_BRACKET then "KbBracketRight"
else new_name.to_s.capitalize.gsub(/_(.)/) { $1.upcase }
end
Gosu.const_set old_name, new_name
Gosu.const_set old_name, Gosu.const_get(new_name)

# Also import old-style constants into Gosu::Button.
Gosu::Button.const_set old_name, Gosu.const_get(new_name)
Expand Down

0 comments on commit 084e533

Please sign in to comment.