summaryrefslogtreecommitdiff
path: root/engine/Components/ResourceManager.go
diff options
context:
space:
mode:
Diffstat (limited to 'engine/Components/ResourceManager.go')
-rw-r--r--engine/Components/ResourceManager.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/engine/Components/ResourceManager.go b/engine/Components/ResourceManager.go
index cbccf5f..b33acc0 100644
--- a/engine/Components/ResourceManager.go
+++ b/engine/Components/ResourceManager.go
@@ -35,6 +35,7 @@ func (base *ResourceManager) RegisterObject(PackageName string, obejctName strin
if _, exists := base.objects[displayName]; exists {
return fmt.Errorf("Failed to register the obejct: another obejct with that name already exists")
}
+ new.PrototypeName = displayName
base.objects[displayName] = new
return nil
}