ThePhrozenKeep / D2MOO

Reimplementation of the Diablo2 game coupled with patching facilities for modders.
MIT License
93 stars 29 forks source link

[D2GAME] Error sub_6FC84D40 #93

Closed thaison1995 closed 1 year ago

thaison1995 commented 1 year ago

i am testing with function sub_6FC84D40, to send a notice to join the room, and it error like this

Screenshot007.jpg

I fixed it like this

int i = 0; while (pPacket5A->szText[i]) { if (++i >= 16) return; } GAME_SendPacketToAllConnectedClients(pGame, j_D2GAME_SendPacket0x5A_6FC3DEC0, pPacket5A);

the following functions work perfectly:

GAME_SendPacketToAllConnectedClients j_D2GAME_SendPacket0x5A_6FC3DEC0 D2GAME_PACKETS_SendPacket0x5A_6FC3DEC0