mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-20 19:44:57 +00:00
ExpressionParser: Don't crash when we can't find a device
This commit is contained in:
parent
9edfb5c710
commit
03fdebac09
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue