summaryrefslogtreecommitdiff
path: root/src/login/login.cpp
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2013-04-28 21:28:16 -0700
committerBen Longbons <b.r.longbons@gmail.com>2013-04-28 21:28:16 -0700
commitd93e795a85b8362c5971c23eeac2a48a3cae104b (patch)
tree5718f254921d651e69f4655554e74409d1891fd9 /src/login/login.cpp
parent5670ff7199099394e08796cb8a8c389e6e4d5220 (diff)
downloadtmwa-d93e795a85b8362c5971c23eeac2a48a3cae104b.tar.gz
tmwa-d93e795a85b8362c5971c23eeac2a48a3cae104b.tar.bz2
tmwa-d93e795a85b8362c5971c23eeac2a48a3cae104b.tar.xz
tmwa-d93e795a85b8362c5971c23eeac2a48a3cae104b.zip
Fix some oversized writes
Diffstat (limited to 'src/login/login.cpp')
-rw-r--r--src/login/login.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/login/login.cpp b/src/login/login.cpp
index 356a607..e07b7cb 100644
--- a/src/login/login.cpp
+++ b/src/login/login.cpp
@@ -3093,7 +3093,7 @@ void parse_login(int fd)
min_level_to_connect, account.userid,
gm_level, ip);
WFIFOW(fd, 0) = 0x81;
- WFIFOL(fd, 2) = 1; // 01 = Server closed
+ WFIFOB(fd, 2) = 1; // 01 = Server closed
WFIFOSET(fd, 3);
}
else
@@ -3189,7 +3189,7 @@ void parse_login(int fd)
LOGIN_LOG("Connection refused: there is no char-server online (account: %s, ip: %s).\n",
account.userid, ip);
WFIFOW(fd, 0) = 0x81;
- WFIFOL(fd, 2) = 1; // 01 = Server closed
+ WFIFOB(fd, 2) = 1; // 01 = Server closed
WFIFOSET(fd, 3);
}
}