Browse Source

Merge pull request #61 from AlwaysBusyLzc/master

对UnOrderMultiMap容器做了一个小优化
tanghai 7 năm trước cách đây
mục cha
commit
fa4634dd88
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      Unity/Assets/Scripts/Base/UnOrderMultiMap.cs

+ 1 - 1
Unity/Assets/Scripts/Base/UnOrderMultiMap.cs

@@ -22,9 +22,9 @@ namespace ETModel
 			if (list == null)
 			{
 				list = this.FetchList();
+				this.dictionary[t] = list;
 			}
 			list.Add(k);
-			this.dictionary[t] = list;
 		}
 
 		public KeyValuePair<T, List<K>> First()