refs #905 Fixed unrelated potential undefined behaviour.

This commit is contained in:
Mathew Sutcliffe
2017-03-10 14:40:34 +00:00
parent 70224bea72
commit c9587e5ace

View File

@@ -155,7 +155,7 @@ namespace BlackGui
return info.getIdentifier() == identifier;
});
if (selected->isUnspecified())
if (selected == simDrivers.end() || selected->isUnspecified())
{
CLogMessage(this).error("Simulator plugin does not exist: '%1'") << identifier;
return;