Skip to content

Commit

Permalink
修改原型反射类型
Browse files Browse the repository at this point in the history
  • Loading branch information
pangdogs committed Dec 26, 2024
1 parent 04c708e commit 719b13b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ec/pt/component.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func (pt *_Component) Prototype() string {

// InstanceRT 组件实例反射类型
func (pt *_Component) InstanceRT() reflect.Type {
return pt.instanceRT
return reflect.PointerTo(pt.instanceRT)
}

// Construct 创建组件
Expand Down
2 changes: 1 addition & 1 deletion ec/pt/entity.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func (pt *_Entity) Prototype() string {

// InstanceRT 实体实例反射类型
func (pt *_Entity) InstanceRT() reflect.Type {
return pt.instanceRT
return reflect.PointerTo(pt.instanceRT)
}

// Scope 可访问作用域
Expand Down

0 comments on commit 719b13b

Please sign in to comment.