mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-26 06:10:56 +00:00
[input] Actually return the button in IN_FindButton
Returning the wrapper object makes for some weird behaviour.
This commit is contained in:
parent
7739972f19
commit
73ab33ba97
1 changed files with 5 additions and 1 deletions
|
@ -189,7 +189,11 @@ IN_RegisterButton (in_button_t *button)
|
|||
in_button_t *
|
||||
IN_FindButton (const char *name)
|
||||
{
|
||||
return Hash_Find (button_tab, name);
|
||||
regbutton_t *regbutton = Hash_Find (button_tab, name);
|
||||
if (regbutton) {
|
||||
return regbutton->button;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void __attribute__((constructor))
|
||||
|
|
Loading…
Reference in a new issue