X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=blobdiff_plain;f=Config.m;h=046ccc2c6fa22980952d76ab84f0b59c76bea1a6;hp=55162b081baa3270f35037fe0c00caed42bd18e2;hb=0238d141f06420e1a73eccd14ca73a7e29ad2a69;hpb=794561a4606fa9e31e3b2b077891f5b1e6084698 diff --git a/Config.m b/Config.m index 55162b0..046ccc2 100644 --- a/Config.m +++ b/Config.m @@ -34,8 +34,11 @@ - (NSDictionary *)serialize { NSMutableDictionary* cfgEntries = [[NSMutableDictionary alloc] initWithCapacity:_entries.count]; - for (id key in _entries) - cfgEntries[key] = [_entries[key] serialize]; + for (id key in _entries) { + id serialized = [_entries[key] serialize]; + if (serialized) + cfgEntries[key] = serialized; + } return @{ @"name": _name, @"entries": cfgEntries }; }