Checking in improvements to the effect availability heuristic.
[MenuTunes.git] / MTeSerialNumber.m
index 9d8da42..5d5de1c 100755 (executable)
@@ -19,7 +19,7 @@
                      extra:(NSString *)extra
                  publisher:(NSString *)publisher
 {
-    if ( self = [super init] ) {
+    if ( (self = [super init]) ) {
         _serialNumber = serial;
         _nameBasedKey = name;
         _extraDataKey = nil;       //extra data is currently unused.
             NSEnumerator *deadEnum = [_deadSerials objectEnumerator];
             id            aDeadSerial;
             
-            while ( aDeadSerial = [deadEnum nextObject] ) {
+            while ( (aDeadSerial = [deadEnum nextObject]) ) {
                 if ( [aDeadSerial isEqualToString:_serialNumber] ) {
                     dead = YES;
                }