update few for compatibility
This commit is contained in:
parent
1538a049b8
commit
2e29303ce8
@ -86,13 +86,12 @@ namespace hgl
|
|||||||
template<typename ...ARGS>
|
template<typename ...ARGS>
|
||||||
SafePtrData<T> *CreateObject(const SourceCodeLocation &scl,ARGS...args)
|
SafePtrData<T> *CreateObject(const SourceCodeLocation &scl,ARGS...args)
|
||||||
{
|
{
|
||||||
ObjectBaseInfo obi
|
ObjectBaseInfo obi;
|
||||||
{
|
|
||||||
.hash_code =GetTypeHash(),
|
obi.hash_code =GetTypeHash();
|
||||||
.object_manager =this,
|
obi.object_manager =this;
|
||||||
.serial_number =AcquireSerialNumber(),
|
obi.serial_number =AcquireSerialNumber();
|
||||||
.source_code_location=scl
|
obi.source_code_location=scl;
|
||||||
};
|
|
||||||
|
|
||||||
Object *obj=object_allocator->Create(obi);
|
Object *obj=object_allocator->Create(obi);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user