This commit is contained in:
hyzboy 2024-11-21 01:23:12 +08:00
commit 7c08fbc530

View File

@ -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);