Skip to content

Commit

Permalink
Merge pull request #239 from Royston88/main
Browse files Browse the repository at this point in the history
Fix for Issue #232, bug where game crashes after changing key bind.
  • Loading branch information
DangerousVanilla authored Nov 11, 2024
2 parents 6f9b32b + 051ab38 commit f2119a4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/gui/menu/description.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,9 @@ def set_key(self, event: pygame.event.Event) -> bool:
# Scrolling should not be allowed as keybind
return False
if self.selection_key.hover(offset):
rpath = resource_path("images/keys/rclick.png")
lpath = resource_path("images/keys/lclick.png")
unknown = resource_path("images/keys/generic.png")
rpath = resource_path("images/ui/keys/rclick.png")
lpath = resource_path("images/ui/keys/lclick.png")
unknown = resource_path("images/ui/keys/generic.png")
if event.button == pygame.BUTTON_LEFT:
path = lpath
elif event.button == pygame.BUTTON_RIGHT:
Expand Down

0 comments on commit f2119a4

Please sign in to comment.