// shan 2002/01/10
void lssproto_PETST_recv( int fd, int nPet, int sPet )
{
int charaindex;
int i, nums=0;
CHECKFDANDTIME;
charaindex = CONNECT_getCharaindex( fd );
if (!CHAR_CHECKINDEX( charaindex ) ) return;
if( CHAR_getWorkInt( charaindex, CHAR_WORKBATTLEMODE)
!= BATTLE_CHARMODE_NONE) return ;
for( i=0; i<5; i++) {
if( CHAR_getWorkInt( charaindex, CHAR_WORK_PET0_STAT+i) == TRUE )
nums++;
}
if(nPet < 0 || nPet > 4 || sPet <0 || sPet >4 )
return ;
}
修复后会出现别的BUG