@@ -83,19 +83,19 @@ void RenderNetworkedVarValueType<T>(int index) where T : struct
83
83
if ( type == typeof ( int ) )
84
84
val = EditorGUILayout . IntField ( name , ( int ) val ) ;
85
85
else if ( type == typeof ( uint ) )
86
- val = EditorGUILayout . LongField ( name , ( long ) val ) ;
86
+ val = EditorGUILayout . LongField ( name , ( long ) ( ( uint ) val ) ) ;
87
87
else if ( type == typeof ( short ) )
88
- val = EditorGUILayout . IntField ( name , ( int ) val ) ;
88
+ val = EditorGUILayout . IntField ( name , ( int ) ( ( short ) val ) ) ;
89
89
else if ( type == typeof ( ushort ) )
90
- val = EditorGUILayout . IntField ( name , ( int ) val ) ;
90
+ val = EditorGUILayout . IntField ( name , ( int ) ( ( ushort ) val ) ) ;
91
91
else if ( type == typeof ( sbyte ) )
92
- val = EditorGUILayout . IntField ( name , ( int ) val ) ;
92
+ val = EditorGUILayout . IntField ( name , ( int ) ( ( sbyte ) val ) ) ;
93
93
else if ( type == typeof ( byte ) )
94
- val = EditorGUILayout . IntField ( name , ( int ) val ) ;
94
+ val = EditorGUILayout . IntField ( name , ( int ) ( ( byte ) val ) ) ;
95
95
else if ( type == typeof ( long ) )
96
96
val = EditorGUILayout . LongField ( name , ( long ) val ) ;
97
97
else if ( type == typeof ( ulong ) )
98
- val = EditorGUILayout . LongField ( name , ( long ) val ) ;
98
+ val = EditorGUILayout . LongField ( name , ( long ) ( ( ulong ) val ) ) ;
99
99
else if ( type == typeof ( bool ) )
100
100
val = EditorGUILayout . Toggle ( name , ( bool ) val ) ;
101
101
else if ( type == typeof ( string ) )
0 commit comments