Skip to content

Commit

Permalink
Merge pull request #7 from Prastiwar/fix/serialization
Browse files Browse the repository at this point in the history
Fix #6
  • Loading branch information
Prastiwar authored Sep 10, 2022
2 parents 769342e + 0beb254 commit cbe98c1
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Runtime/UDictionary.cs
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,8 @@ public TValue this[TKey key]

void ISerializationCallbackReceiver.OnBeforeSerialize()
{
if (m_keys == null)
{
m_keys = Keys.ToArray();
m_values = Values.ToArray();
}
m_keys = Keys.ToArray();
m_values = Values.ToArray();
}

void ISerializationCallbackReceiver.OnAfterDeserialize()
Expand Down

0 comments on commit cbe98c1

Please sign in to comment.