Skip to content

Commit cbe98c1

Browse files
authored
Merge pull request #7 from Prastiwar/fix/serialization
Fix #6
2 parents 769342e + 0beb254 commit cbe98c1

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

Runtime/UDictionary.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -139,11 +139,8 @@ public TValue this[TKey key]
139139

140140
void ISerializationCallbackReceiver.OnBeforeSerialize()
141141
{
142-
if (m_keys == null)
143-
{
144-
m_keys = Keys.ToArray();
145-
m_values = Values.ToArray();
146-
}
142+
m_keys = Keys.ToArray();
143+
m_values = Values.ToArray();
147144
}
148145

149146
void ISerializationCallbackReceiver.OnAfterDeserialize()

0 commit comments

Comments
 (0)