mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-05 15:48:51 +00:00
Compile fix
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3112 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
c8fbc3941d
commit
edc143e25d
1 changed files with 2 additions and 2 deletions
4
Externals/WiiUseSrc/Src/wiiuse.c
vendored
4
Externals/WiiUseSrc/Src/wiiuse.c
vendored
|
@ -115,10 +115,10 @@ struct wiimote_t** wiiuse_init(int wiimotes) {
|
||||||
if (!wiimotes)
|
if (!wiimotes)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
wm = (wiimote_t **)malloc(sizeof(struct wiimote_t*) * wiimotes);
|
wm = (struct wiimote_t **)malloc(sizeof(struct wiimote_t*) * wiimotes);
|
||||||
|
|
||||||
for (i = 0; i < wiimotes; ++i) {
|
for (i = 0; i < wiimotes; ++i) {
|
||||||
wm[i] = (wiimote_t *)malloc(sizeof(struct wiimote_t));
|
wm[i] = (struct wiimote_t *)malloc(sizeof(struct wiimote_t));
|
||||||
memset(wm[i], 0, sizeof(struct wiimote_t));
|
memset(wm[i], 0, sizeof(struct wiimote_t));
|
||||||
|
|
||||||
wm[i]->unid = i+1;
|
wm[i]->unid = i+1;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue