Closed valuerr closed 7 years ago
P.S. Jetbrains Resharper's inspection shows huge possible bugs, one of them for ex.:
// CommunityCoreLibrary\DLL_Project\Controller\SubControllers\SequencedInjectors\SequencedInjectionSets\SequencedInjectionSet_Designator.cs:41 Possible 'System.NullReferenceException'
public override bool IsValid()
{
bool valid = true;
if(
( designatorClass == null )||
( !designatorClass.IsSubclassOf( typeof( Designator ) ) )
)
{
CCL_Log.Trace(
Verbosity.Validation,
string.Format( "Unable to resolve designatorClass '{0}'", designatorClass.FullName ),
Name
);
valid = false;
}
...
logging can't log an incorrect call (with designatorClass==null
) due to the fact that logging itself causes System.NullReferenceException
Thanks for catching those, this is by far the easiest bug report to find solutions for. ;)
Just inspected a15-code with PVS-Studio and found follow:
There are two identical conditions with
pawn.CurJob.targetB
, it seems the last should bepawn.CurJob.targetC