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