X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=blobdiff_plain;f=Config.m;h=046ccc2c6fa22980952d76ab84f0b59c76bea1a6;hp=55162b081baa3270f35037fe0c00caed42bd18e2;hb=f563321aec9e13b8479ab3b890a9179f095a8b17;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 }; }