- Fixed autotrading characters not being able to reconnect. Seams like I misunderstood how id_db and pc_db are used.

Ref: http://www.eathena.ws/board/index.php?showtopic=131873

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9644 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
FlavioJS
2007-01-12 03:40:18 +00:00
parent 4194ea17da
commit dde66aee4e
2 changed files with 5 additions and 1 deletions

View File

@@ -3,6 +3,9 @@ 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/01/12
* Fixed autotrading characters not being able to reconnect. Seams like I
misunderstood how id_db and pc_db are used. [FlavioJS]
2007/01/11
* Fixed the script engine not parsing strings in multibyte charsets
correctly (should have been done in r9532).

View File

@@ -8200,8 +8200,9 @@ void clif_parse_WantToConnection(int fd, TBL_PC* sd)
} else
{// packet version accepted
TBL_PC* old_sd;
struct block_list* bl;
if( map_id2bl(account_id) != NULL )
if( (bl=map_id2bl(account_id)) != NULL && bl->type != BL_PC )
{// non-player object already has that id
ShowError("clif_parse_WantToConnection: a non-player object already has id %d, please increase the starting account number\n", account_id);
WFIFOHEAD(fd,packet_len(0x6a));