This commit is contained in:
hegyak 2015-11-22 16:04:05 -08:00
commit 9b0a94dd8e
1 changed files with 2 additions and 1 deletions
BizHawk.Client.EmuHawk/tools

View File

@ -56,7 +56,8 @@ namespace BizHawk.Client.EmuHawk
}
else
{
MethodInfo method = GetType().GetMethod("Load").MakeGenericMethod(toolType);
//The type[] in parameter is used to avoid an ambigous name exception
MethodInfo method = GetType().GetMethod("Load", new Type[] { typeof(bool) }).MakeGenericMethod(toolType);
return (IToolForm)method.Invoke(this, new object[] { focus });
}
}