mirror of https://github.com/mgba-emu/mgba.git
Core Input: Correct a memset size within mInputUnbindHat()
Previously the binding struct wouldn't be fully invalidated.
This commit is contained in:
parent
86cf8a90a3
commit
aa4423a68f
|
@ -563,7 +563,7 @@ void mInputUnbindHat(struct mInputMap* map, uint32_t type, int id) {
|
|||
mInputHatListResize(&impl->hats, -1);
|
||||
} else {
|
||||
struct mInputHatBindings* description = mInputHatListGetPointer(&impl->hats, id);
|
||||
memset(description, -1, sizeof(&description));
|
||||
memset(description, -1, sizeof(*description));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue