diff --git a/rpcs3/Input/mm_joystick_handler.cpp b/rpcs3/Input/mm_joystick_handler.cpp index d6f22bc26c..8b5d2c949d 100644 --- a/rpcs3/Input/mm_joystick_handler.cpp +++ b/rpcs3/Input/mm_joystick_handler.cpp @@ -474,11 +474,11 @@ bool mm_joystick_handler::GetMMJOYDevice(int index, MMJOYDevice* dev) std::shared_ptr mm_joystick_handler::get_device(const std::string& device) { if (!Init()) - return false; + return nullptr; int id = GetIDByName(device); if (id < 0) - return false; + return nullptr; std::shared_ptr joy_device = std::make_shared(m_devices.at(id)); return joy_device;