Removed the Player pointer from CNSocket

It was a leak in the abstraction that we weren't even using that much.
This is technically a de-optimization, but it's okay since it's not a
hot code path.
This commit is contained in:
2020-12-01 19:58:34 +01:00
parent 7c5d7a70cc
commit c43a3d64fb
4 changed files with 25 additions and 25 deletions

View File

@@ -135,8 +135,6 @@ enum ACTIVEKEY {
SOCKETKEY_FE
};
struct Player;
class CNSocket;
typedef void (*PacketHandler)(CNSocket* sock, CNPacketData* data);
@@ -158,7 +156,6 @@ private:
public:
SOCKET sock;
PacketHandler pHandler;
Player *plr = nullptr;
CNSocket(SOCKET s, PacketHandler ph);