1 2 3 4 5 6 7 8 9 10 11 12 13 14
#include "common.h" #include "patcher.h" #include "Boat.h" CBoat::CBoat(int mi, uint8 owner) { ctor(mi, owner); } WRAPPER CBoat* CBoat::ctor(int, uint8) { EAXJMP(0x53E3E0); } STARTPATCHES InjectHook(0x53E790, &CBoat::dtor, PATCH_JUMP); ENDPATCHES