Fixed client errors when pecopeco Lord Knights/Paladins log in with a weapon equipped

git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1132 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
celest
2005-02-18 08:38:09 +00:00
parent 25d104d8c4
commit fdbe7b1fb2
3 changed files with 16 additions and 2 deletions

View File

@@ -1568,7 +1568,13 @@ int mmo_char_send006b(int fd, struct char_session_data *sd) {
WFIFOW(fd,j+50) = DEFAULT_WALK_SPEED; // p->speed;
WFIFOW(fd,j+52) = p->class_;
WFIFOW(fd,j+54) = p->hair;
WFIFOW(fd,j+56) = p->weapon;
// pecopeco knights/crusaders crash fix
if (p->class_ == 13 || p->class_ == 21 ||
p->class_ == 4014 || p->class_ == 4022)
WFIFOW(fd,j+56) = 0;
else WFIFOW(fd,j+56) = p->weapon;
WFIFOW(fd,j+58) = p->base_level;
WFIFOW(fd,j+60) = p->skill_point;
WFIFOW(fd,j+62) = p->head_bottom;