mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2025-01-11 12:15:34 +00:00
Merge pull request #64 from knocte/master
generator: fix possible unhandled KeyNotFoundException (regression)
This commit is contained in:
commit
654b81c9f4
|
@ -213,8 +213,13 @@ namespace GtkSharp.Generation {
|
||||||
type = Trim (type);
|
type = Trim (type);
|
||||||
IGeneratable cur_type = null;
|
IGeneratable cur_type = null;
|
||||||
while (types.TryGetValue (type, out cur_type) && cur_type is AliasGen) {
|
while (types.TryGetValue (type, out cur_type) && cur_type is AliasGen) {
|
||||||
IGeneratable igen = types [type] as AliasGen;
|
IGeneratable igen = cur_type as AliasGen;
|
||||||
types [type] = types [igen.Name];
|
|
||||||
|
IGeneratable new_type;
|
||||||
|
if (!types.TryGetValue (igen.Name, out new_type))
|
||||||
|
new_type = null;
|
||||||
|
|
||||||
|
types [type] = new_type;
|
||||||
type = igen.Name;
|
type = igen.Name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue