summaryrefslogtreecommitdiff
path: root/include/pso
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2023-03-20 13:57:44 -0300
committermrb0nk500 <b0nk@b0nk.xyz>2023-03-20 13:57:44 -0300
commit0d2f9f05d2fdf31ca21e6e5795880f98dc38821a (patch)
tree17253f6870c273df77a27af9dfcc25abb1627af3 /include/pso
parentb025d4874b171c675dc18889c3900c83194863e6 (diff)
TProtocol: Add (and match) `operator delete()`
It's exactly the same as `TObject::operator delete()`, not sure why this was even implemented.
Diffstat (limited to 'include/pso')
-rw-r--r--include/pso/TProtocol.h3
1 files changed, 3 insertions, 0 deletions
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();