summaryrefslogtreecommitdiffstats
path: root/src/vehicles/Plane.cpp
blob: 3bad1e0708402e01161a57bdf8191dce413b3d2b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include "common.h"
#include "patcher.h"
#include "Plane.h"

CPlane::CPlane(int mi, uint8 owner)
{
	ctor(mi, owner);
}

WRAPPER CPlane* CPlane::ctor(int, uint8) { EAXJMP(0x54B170); }

CPlane::~CPlane()
{
	DeleteRwObject();
}

class CPlane_ : public CPlane
{
public:
	void dtor(void) { CPlane::~CPlane(); }
};

STARTPATCHES
	InjectHook(0x54B270, &CPlane_::dtor, PATCH_JUMP);
ENDPATCHES