Fixed "failed to write event" errors when a client or server tries to change an enum value of an item (e.g. the output type of an oscillator component)

This commit is contained in:
Joonas Rikkonen
2018-07-20 15:18:46 +03:00
parent a61ac1716d
commit 0abdcb969d
2 changed files with 23 additions and 0 deletions
@@ -223,6 +223,7 @@ namespace Barotrauma
return false;
}
propertyInfo.SetValue(obj, enumVal);
return true;
}
else
{