mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-30 06:32:56 +00:00
ExpressionParser: Don't crash when we can't find a device
This commit is contained in:
parent
9edfb5c710
commit
03fdebac09
@ -351,6 +351,9 @@ Device *ControlFinder::FindDevice(ControlQualifier qualifier)
|
||||
Device::Control *ControlFinder::FindControl(ControlQualifier qualifier)
|
||||
{
|
||||
Device *device = FindDevice(qualifier);
|
||||
if (!device)
|
||||
return NULL;
|
||||
|
||||
if (is_input)
|
||||
return device->FindInput(qualifier.control_name);
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user