summaryrefslogtreecommitdiff
path: root/src/gui/char_select.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2006-08-26 22:09:04 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2006-08-26 22:09:04 +0000
commit40339bebb026cd553aacbbff6f2fe1aa14816d5a (patch)
treef6398430043accbc90170ac15c62c8deebd895eb /src/gui/char_select.cpp
parentfd279ae77295a6babedd31202078862eabcada9f (diff)
downloadmana-40339bebb026cd553aacbbff6f2fe1aa14816d5a.tar.gz
mana-40339bebb026cd553aacbbff6f2fe1aa14816d5a.tar.bz2
mana-40339bebb026cd553aacbbff6f2fe1aa14816d5a.tar.xz
mana-40339bebb026cd553aacbbff6f2fe1aa14816d5a.zip
Got rid of the default MessageOut constructor, since all messages should have
an ID.
Diffstat (limited to 'src/gui/char_select.cpp')
-rw-r--r--src/gui/char_select.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gui/char_select.cpp b/src/gui/char_select.cpp
index 7e0a1a29..adcbe290 100644
--- a/src/gui/char_select.cpp
+++ b/src/gui/char_select.cpp
@@ -203,8 +203,7 @@ void CharSelectDialog::updatePlayerInfo()
void CharSelectDialog::attemptCharDelete()
{
// Request character deletion
- MessageOut msg;
- msg.writeShort(PAMSG_CHAR_DELETE);
+ MessageOut msg(PAMSG_CHAR_DELETE);
// TODO: Send the selected slot
msg.writeByte(0);
Network::send(Network::ACCOUNT, msg);
@@ -214,8 +213,7 @@ void CharSelectDialog::attemptCharDelete()
void CharSelectDialog::attemptCharSelect()
{
// Request character selection
- MessageOut msg;
- msg.writeShort(PAMSG_CHAR_SELECT);
+ MessageOut msg(PAMSG_CHAR_SELECT);
msg.writeByte(mCharInfo->getPos());
Network::send(Network::ACCOUNT, msg);
mCharInfo->lock();