mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
Fixed the crash which occurred when opening Wiimote configuration before a game was started.
This commit is contained in:
@ -40,8 +40,9 @@ void Shutdown()
|
||||
void Initialize(void* const hwnd, bool wait)
|
||||
{
|
||||
// add 4 Wiimotes
|
||||
for (unsigned int i = WIIMOTE_CHAN_0; i<MAX_BBMOTES; ++i)
|
||||
s_config.controllers.push_back(new WiimoteEmu::Wiimote(i));
|
||||
if (s_config.controllers.empty())
|
||||
for (unsigned int i = WIIMOTE_CHAN_0; i < MAX_BBMOTES; ++i)
|
||||
s_config.controllers.push_back(new WiimoteEmu::Wiimote(i));
|
||||
|
||||
g_controller_interface.Initialize(hwnd);
|
||||
|
||||
|
Reference in New Issue
Block a user