summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorBryan Furia <52169145+BFuria@users.noreply.github.com>2019-06-24 20:49:53 -0400
committerWouter van Oortmerssen <aardappel@gmail.com>2019-06-24 17:49:53 -0700
commit92e9f330363af45972fbed68cca919f6ce86a36b (patch)
treec92cabe544b3378edfdbf708932dddb9ee9219c1 /net
parentff1a22a05f21d667345fcc79b3b089bbecc1bf3f (diff)
downloadflatbuffers-92e9f330363af45972fbed68cca919f6ce86a36b.tar.gz
flatbuffers-92e9f330363af45972fbed68cca919f6ce86a36b.tar.bz2
flatbuffers-92e9f330363af45972fbed68cca919f6ce86a36b.zip
Don't check ForceDefaults when adding Offfset values (#5415)
Diffstat (limited to 'net')
-rw-r--r--net/FlatBuffers/FlatBufferBuilder.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/FlatBuffers/FlatBufferBuilder.cs b/net/FlatBuffers/FlatBufferBuilder.cs
index 07e3180f..27c16b36 100644
--- a/net/FlatBuffers/FlatBufferBuilder.cs
+++ b/net/FlatBuffers/FlatBufferBuilder.cs
@@ -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>