mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 13:01:52 +00:00
ScriptCore: Made creation of class instance safer
This commit is contained in:
@@ -300,8 +300,7 @@ internal class EntityEditor
|
||||
{
|
||||
if (ImGui.Selectable(t.Name))
|
||||
{
|
||||
object instance = Activator.CreateInstance(t);
|
||||
newValue = instance;
|
||||
newValue = ActivatorExtension.CreateInstanceSafe(t);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user