Skip to content

Commit

Permalink
Fixed SerializedProperty setting value causing stack overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelsakharov committed Mar 22, 2024
1 parent 6b02141 commit c5174f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Prowl.Runtime/Serializer/SerializedProperty.cs
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,9 @@ public bool IsPrimitive
/// </summary>
public void Set(object value)
{
if (_value == value) return;
var old = _value;
Value = TagType switch {
_value = TagType switch {
PropertyType.Byte => (byte)value,
PropertyType.sByte => (sbyte)value,
PropertyType.Short => (short)value,
Expand Down

0 comments on commit c5174f9

Please sign in to comment.