aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfusion32 <marcopuzziello@gmail.com>2025-08-28 20:19:24 -0300
committerfusion32 <marcopuzziello@gmail.com>2025-08-28 20:19:24 -0300
commit9f07f7e53cff91363dea3884f7ac046c41f65612 (patch)
tree15b23e6f6b0aef8ce6ea429e91cfdec89ef8550f
parentc670fea4acd1692f32956de5d641201830b123b0 (diff)
downloadgame-9f07f7e53cff91363dea3884f7ac046c41f65612.tar.gz
game-9f07f7e53cff91363dea3884f7ac046c41f65612.zip
fix buddy status causing a client assertion
-rw-r--r--src/connections.cc2
-rw-r--r--src/sending.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/connections.cc b/src/connections.cc
index 84daec6..f1d36fb 100644
--- a/src/connections.cc
+++ b/src/connections.cc
@@ -202,7 +202,7 @@ bool TConnection::JoinGame(TReadBuffer *Buffer){
}
this->ClearKnownCreatureTable(false);
-
+
try{
this->TerminalType = (int)Buffer->readWord();
this->TerminalVersion = (int)Buffer->readWord();
diff --git a/src/sending.cc b/src/sending.cc
index 329635b..5a5a969 100644
--- a/src/sending.cc
+++ b/src/sending.cc
@@ -1707,7 +1707,7 @@ void SendBuddyStatus(TConnection *Connection, uint32 CharacterID, bool Online){
}else{
SendByte(Connection, SV_CMD_BUDDY_OFFLINE);
}
- SendWord(Connection, CharacterID);
+ SendQuad(Connection, CharacterID);
FinishSendData(Connection);
}