mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-01-31 19:55:38 +00:00
HostInterface: Crash fix again for controller switching
This commit is contained in:
parent
acd49f3765
commit
77a60f0c5f
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue