diff --git a/Source/Plugins/Plugin_Wiimote/Src/wiimote_real.cpp b/Source/Plugins/Plugin_Wiimote/Src/wiimote_real.cpp index 808c7c07bc..a4df007d4c 100644 --- a/Source/Plugins/Plugin_Wiimote/Src/wiimote_real.cpp +++ b/Source/Plugins/Plugin_Wiimote/Src/wiimote_real.cpp @@ -147,7 +147,13 @@ void ReadData() { //INFO_LOG(CONSOLE, "Writing data to the Wiimote\n"); SEvent& rEvent = m_EventWriteQueue.front(); - wiiuse_io_write(m_pWiiMote, (byte*)rEvent.m_PayLoad, (int)m_EventWriteQueue.size()); + wiiuse_io_write(m_pWiiMote, (byte*)rEvent.m_PayLoad, +#ifdef _WIN32 // dunno if this is needed, sonic ran away when i found the bug :p + MAX_PAYLOAD +#else + (int)m_EventWriteQueue.size() +#endif + ); m_EventWriteQueue.pop(); #ifdef _WIN32