diff --git a/Source/NSOperation.m b/Source/NSOperation.m index ab19f7608..b0c0c504c 100644 --- a/Source/NSOperation.m +++ b/Source/NSOperation.m @@ -85,7 +85,7 @@ static NSArray *empty = nil; - (void) addDependency: (NSOperation *)op { - if (NO == [op isKindOfClass: [self class]]) + if (NO == [op isKindOfClass: [NSOperation class]]) { [NSException raise: NSInvalidArgumentException format: @"[%@-%@] dependency is not an NSOperation",