summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--context.h2
-rw-r--r--include/pso/TProtocol.h3
2 files changed, 5 insertions, 0 deletions
diff --git a/context.h b/context.h
index d7d27e8..3429793 100644
--- a/context.h
+++ b/context.h
@@ -1540,6 +1540,8 @@ public:
int m_packet_size;
struct packet m_packet;
struct recv_packet_handlers m_recv_handlers;
+private:
+ static void operator delete(void *ptr) { obj_heap->heap_free(ptr); };
public:
TProtocol(TObject *parent, u16 sub_version, int language, char *serial_number, char *access_key, char *password);
virtual ~TProtocol();
diff --git a/include/pso/TProtocol.h b/include/pso/TProtocol.h
index d19b37d..6991c67 100644
--- a/include/pso/TProtocol.h
+++ b/include/pso/TProtocol.h
@@ -8,6 +8,7 @@
#include <pso/packet_classes.h>
#include <pso/protocol.h>
#include <pso/PSOV3EncryptionTCP.h>
+#include <pso/THeap.h>
#include <pso/TMainTask.h>
#include <pso/TMenuList.h>
#include <pso/TObject.h>
@@ -157,6 +158,8 @@ public:
int m_packet_size;
struct packet m_packet;
struct recv_packet_handlers m_recv_handlers;
+private:
+ static void operator delete(void *ptr) { obj_heap->heap_free(ptr); };
public:
TProtocol(TObject *parent, u16 sub_version, int language, char *serial_number, char *access_key, char *password);
virtual ~TProtocol();