Core Input: Correct a memset size within mInputUnbindHat()

Previously the binding struct wouldn't be fully invalidated.
This commit is contained in:
Lioncash 2017-05-14 21:22:17 -04:00 committed by endrift
parent 86cf8a90a3
commit aa4423a68f
1 changed files with 1 additions and 1 deletions

View File

@ -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));
}
}