Vorspire
Knight
The documentations command [DocGen has a very small flaw it it which causes it to fail on generic types taht do not contain the ` char.
IndexOutOfRangeException
Line 2432, Commands/Docs.cs
Obvious fix:
I think it threw an error for me when it tried to document a generic delegate, but not sure, have since deleted the crash log after the fix.
IndexOutOfRangeException
Line 2432, Commands/Docs.cs
Code:
int index = type.Name.IndexOf( '`' );
string rootType = type.Name.Substring( 0, index );
Obvious fix:
Code:
int index = type.Name.IndexOf( '`' );
if(index < 0)
{ index = 0; }
string rootType = type.Name.Substring( 0, index );
I think it threw an error for me when it tried to document a generic delegate, but not sure, have since deleted the crash log after the fix.