Call correct UUID constructor for Entities, fixed crash and weirdness when Scripts have fields that are classes

Let's not talk about the fact that this was a one line fix all along...
This commit is contained in:
Simon Lübeß
2023-11-18 02:05:55 +01:00
parent 214889470f
commit 24365ec477
3 changed files with 38 additions and 61 deletions
@@ -377,6 +377,10 @@ static class ScriptEngine
script.Instance.SetFieldValue(scriptField, componentInstance);
componentType.ReleaseRef();
case .Struct:
// TODO: Handle Structs when copying fields to instance.
case .Class:
// TODO: Handle Class when copying fields to instance.
default:
script.Instance.SetFieldValue(scriptField, field._data);
}