Skip to content

Commit 11f586c

Browse files
committed
Bug fix
1 parent 5511628 commit 11f586c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Editor/UInspectorPlus/ComponentMethodDrawer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ private void InitComponentMethods(bool resetIndex = true) {
304304
var temp = new Dictionary<object, List<SearchTreeEntry>>();
305305
for (int i = 0; i < methods.Count; i++) {
306306
ComponentMethod m = methods[i];
307-
temp.GetValueOrDefault(m.target).Add(
307+
temp.GetOrConstruct(m.target).Add(
308308
new SearchTreeEntry(new GUIContent(GetMethodNameFormatted(m))) {
309309
userData = i,
310310
level = 2,

0 commit comments

Comments
 (0)