Skip to content

Commit

Permalink
review oopsies
Browse files Browse the repository at this point in the history
  • Loading branch information
y5nw committed Sep 3, 2024
1 parent 1eb4b99 commit a10d8dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion irr/include/IrrlichtDevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ class IrrlichtDevice : public virtual IReferenceCounted
// TODO: This is just some boilerplate for non-SDL devices. Remove this once we fully switch to SDL.
void fillScancode(SEvent &irrevent)
{
const auto &keyinput = irrevent.KeyInput;
auto &keyinput = irrevent.KeyInput;
keyinput.SystemKeyCode = getScancodeFromKey(KeyCode(keyinput.Key, keyinput.Char));
}
};
Expand Down
2 changes: 1 addition & 1 deletion src/gui/guiKeyChangeMenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ bool GUIKeyChangeMenu::acceptInput()
{
const auto *e = getElementFromId(GUI_ID_SAVE_AS_SCANCODES);
if(e && e->getType() == gui::EGUIET_CHECK_BOX) {
save_as_scancodes = dynamic_cast<gui::IGUICheckBox*>(e)->isChecked();
save_as_scancodes = dynamic_cast<const gui::IGUICheckBox*>(e)->isChecked();
g_settings->setBool("save_keys_as_scancodes", save_as_scancodes);
}
}
Expand Down

0 comments on commit a10d8dc

Please sign in to comment.