mirror of https://github.com/PrimeDecomp/prime.git
Use proper return for CFactoryFnReturn::GetObjForTransfer
This commit is contained in:
parent
5b126665df
commit
d7a435fb5b
|
@ -18,7 +18,7 @@ public:
|
|||
template < typename T >
|
||||
CFactoryFnReturn(T* ptr) : obj(TToken< T >::GetIObjObjectFor(ptr).release()) {}
|
||||
|
||||
IObj* GetObjForTransfer() const { return obj.release(); }
|
||||
const rstl::auto_ptr<CObjOwnerDerivedFromIObjUntyped>& GetObjForTransfer() const { return obj; }
|
||||
private:
|
||||
rstl::auto_ptr< CObjOwnerDerivedFromIObjUntyped > obj;
|
||||
};
|
||||
|
|
|
@ -40,7 +40,7 @@ void CObjectReference::Lock() {
|
|||
|
||||
IObj* CObjectReference::GetObject() {
|
||||
if (x10_object == nullptr) {
|
||||
x10_object = xc_objectStore->GetFactory().Build(x4_objTag, x14_params).GetObjForTransfer();
|
||||
x10_object = xc_objectStore->GetFactory().Build(x4_objTag, x14_params).GetObjForTransfer().release();
|
||||
}
|
||||
x3_loading = false;
|
||||
return x10_object;
|
||||
|
|
Loading…
Reference in New Issue