mirror of
https://git.rip/DMCA_FUCKER/re3.git
synced 2024-11-18 06:27:46 +00:00
24 lines
478 B
C++
24 lines
478 B
C++
#include "common.h"
|
|
#include "patcher.h"
|
|
#include "DummyObject.h"
|
|
#include "Pools.h"
|
|
|
|
CDummyObject::CDummyObject(CObject *obj)
|
|
{
|
|
SetModelIndexNoCreate(obj->GetModelIndex());
|
|
if(obj->m_rwObject)
|
|
AttachToRwObject(obj->m_rwObject);
|
|
obj->DetachFromRwObject();
|
|
m_level = obj->m_level;
|
|
}
|
|
|
|
class CDummyObject_ : public CDummyObject
|
|
{
|
|
public:
|
|
void dtor(void) { CDummyObject::~CDummyObject(); }
|
|
};
|
|
|
|
STARTPATCHES
|
|
InjectHook(0x4BAB70, &CDummyObject_::dtor, PATCH_JUMP);
|
|
ENDPATCHES
|