Don't check ForceDefaults when adding Offfset values (#5415)
authorBryan Furia <52169145+BFuria@users.noreply.github.com>
Tue, 25 Jun 2019 00:49:53 +0000 (20:49 -0400)
committerWouter van Oortmerssen <aardappel@gmail.com>
Tue, 25 Jun 2019 00:49:53 +0000 (17:49 -0700)
net/FlatBuffers/FlatBufferBuilder.cs

index 07e3180..27c16b3 100644 (file)
@@ -540,9 +540,9 @@ namespace FlatBuffers
         /// </summary>
         /// <param name="o">The index into the vtable</param>
         /// <param name="x">The value to put into the buffer. If the value is equal to the default
-        /// and <see cref="ForceDefaults"/> is false, the value will be skipped.</param>
+        /// the value will be skipped.</param>
         /// <param name="d">The default value to compare the value against</param>
-        public void AddOffset(int o, int x, int d) { if (ForceDefaults || x != d) { AddOffset(x); Slot(o); } }
+        public void AddOffset(int o, int x, int d) { if (x != d) { AddOffset(x); Slot(o); } }
         /// @endcond
 
         /// <summary>