Fixed charsrever crashes, caused by r11410

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11466 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
ultramage 2007-10-14 17:44:09 +00:00
parent e5c2908dce
commit d2b0e3a658
3 changed files with 3 additions and 2 deletions

View File

@ -3,6 +3,8 @@ Date Added
AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK.
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
2007/10/14
* Fixed charsrever crashes, caused by r11410 [ultramage]
2007/10/13
* Fixed up NPC_POWERUP and NPC_AGIUP [Playtester]
- NPC_POWERUP: 3x ATK and 2x HIT for 10+5*level seconds

View File

@ -3633,12 +3633,12 @@ int parse_char(int fd)
WFIFOL(login_fd,2) = sd->account_id;
memcpy(WFIFOP(login_fd, 6), email, 40);
WFIFOSET(login_fd,46);
// change value to put new packet (char selection)
RFIFOSKIP(fd,-3); //FIXME: Will this work? Messing with the received buffer is ugly anyway...
RFIFOW(fd,0) = 0x66;
RFIFOB(fd,2) = char_dat[sd->found_char[i]].status.char_num;
// not send packet, it's modify of actual packet
break;
} else {
WFIFOHEAD(fd,3);
WFIFOW(fd,0) = 0x70;

View File

@ -1795,7 +1795,6 @@ int parse_fromlogin(int fd)
WFIFOW(i,0) = 0x81;
WFIFOB(i,2) = 2;
WFIFOSET(i,3);
break;
}
else //Shouldn't happen, but just in case.
set_char_offline(99, aid);