update few for compatibility

This commit is contained in:
hyzboy 2024-11-19 01:17:10 +08:00
parent 1538a049b8
commit 2e29303ce8

View File

@ -86,13 +86,12 @@ namespace hgl
template<typename ...ARGS>
SafePtrData<T> *CreateObject(const SourceCodeLocation &scl,ARGS...args)
{
ObjectBaseInfo obi
{
.hash_code =GetTypeHash(),
.object_manager =this,
.serial_number =AcquireSerialNumber(),
.source_code_location=scl
};
ObjectBaseInfo obi;
obi.hash_code =GetTypeHash();
obi.object_manager =this;
obi.serial_number =AcquireSerialNumber();
obi.source_code_location=scl;
Object *obj=object_allocator->Create(obi);