summaryrefslogtreecommitdiff
path: root/src/net/eathena/pethandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena/pethandler.cpp')
-rw-r--r--src/net/eathena/pethandler.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/net/eathena/pethandler.cpp b/src/net/eathena/pethandler.cpp
index d801c422c..7ccc57283 100644
--- a/src/net/eathena/pethandler.cpp
+++ b/src/net/eathena/pethandler.cpp
@@ -100,19 +100,19 @@ void PetHandler::catchPet(const Being *const being) const
if (!being)
return;
- MessageOut outMsg(CMSG_PET_CATCH);
+ createOutPacket(CMSG_PET_CATCH);
outMsg.writeInt32(being->getId(), "monster id");
}
void PetHandler::requestPetState(const int data) const
{
- MessageOut outMsg(CMSG_PET_REQUEST_STATE);
+ createOutPacket(CMSG_PET_REQUEST_STATE);
outMsg.writeInt32(data, "param");
}
void PetHandler::setName(const std::string &name) const
{
- MessageOut outMsg(CMSG_PET_SET_NAME);
+ createOutPacket(CMSG_PET_SET_NAME);
outMsg.writeString(name, 24, "name");
}