From 92e9f330363af45972fbed68cca919f6ce86a36b Mon Sep 17 00:00:00 2001 From: Bryan Furia <52169145+BFuria@users.noreply.github.com> Date: Mon, 24 Jun 2019 20:49:53 -0400 Subject: [PATCH] Don't check ForceDefaults when adding Offfset values (#5415) --- net/FlatBuffers/FlatBufferBuilder.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/FlatBuffers/FlatBufferBuilder.cs b/net/FlatBuffers/FlatBufferBuilder.cs index 07e3180..27c16b3 100644 --- a/net/FlatBuffers/FlatBufferBuilder.cs +++ b/net/FlatBuffers/FlatBufferBuilder.cs @@ -540,9 +540,9 @@ namespace FlatBuffers /// /// The index into the vtable /// The value to put into the buffer. If the value is equal to the default - /// and is false, the value will be skipped. + /// the value will be skipped. /// The default value to compare the value against - 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 /// -- 2.7.4