HostInterface: Crash fix again for controller switching

This commit is contained in:
Connor McLaughlin 2020-03-22 13:15:44 +10:00
parent acd49f3765
commit 77a60f0c5f

View file

@ -969,7 +969,7 @@ void HostInterface::UpdateSettings(const std::function<void()>& apply_callback)
{
if (m_settings.controller_types[i] != old_controller_types[i])
{
if (!controllers_updated)
if (m_system && !controllers_updated)
{
m_system->UpdateControllers();
controllers_updated = true;