mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-24 16:25:26 +00:00
Fixed a possible null key exception when no AuxEnums are loaded.
This commit is contained in:
parent
424c0b17dd
commit
1ae880a266
|
@ -177,7 +177,7 @@ namespace Bind.Structures
|
|||
TranslateConstantWithReference(enums[c.Reference].ConstantCollection[c.Value] as Constant, enums, auxEnums);
|
||||
value = (enums[c.Reference].ConstantCollection[c.Value] as Constant).Value;
|
||||
}
|
||||
else if (auxEnums[c.Reference].ConstantCollection.ContainsKey(c.Value))
|
||||
else if (auxEnums.Count > 0 && auxEnums[c.Reference].ConstantCollection.ContainsKey(c.Value))
|
||||
{
|
||||
TranslateConstantWithReference(auxEnums[c.Reference].ConstantCollection[c.Value] as Constant, enums, auxEnums);
|
||||
value = (auxEnums[c.Reference].ConstantCollection[c.Value] as Constant).Value;
|
||||
|
|
Loading…
Reference in a new issue