diff --git a/ChangeLog b/ChangeLog index 334e4a269..441913fc3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2017-07-22 Fred Kiefer + + * Source/GSModelLoaderFactory.m (-supportedModelFileAtPath:): Fix + bug found by compiler. + 2017-07-22 Fred Kiefer * Headers/AppKit/NSEvent.h diff --git a/Source/GSModelLoaderFactory.m b/Source/GSModelLoaderFactory.m index 4d979dae4..1dc674f2f 100644 --- a/Source/GSModelLoaderFactory.m +++ b/Source/GSModelLoaderFactory.m @@ -161,7 +161,7 @@ static NSMutableDictionary *_modelMap = nil; NSEnumerator *oen = [sortedArray objectEnumerator]; Class cls = nil; - while ((cls = [oen nextObject]) != nil && result == NO) + while ((cls = [oen nextObject]) != nil && result == nil) { NSString *path = [modelPath stringByAppendingPathExtension: (NSString *)[cls type]];