File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -1445,12 +1445,6 @@ public Int32 getAoiEntityIDFromStream(MemoryStream stream)
14451445 if ( _entityIDAliasIDList . Count > 255 )
14461446 {
14471447 id = stream . readInt32 ( ) ;
1448-
1449- // 如果为0且客户端上一步是重登陆或者重连操作并且服务端entity在断线期间一直处于在线状态
1450- // 则可以忽略这个错误, 因为cellapp可能一直在向baseapp发送同步消息, 当客户端重连上时未等
1451- // 服务端初始化步骤开始则收到同步信息, 此时这里就会出错。
1452- if ( _entityIDAliasIDList . Count == 0 )
1453- return 0 ;
14541448 }
14551449 else
14561450 {
@@ -1459,7 +1453,7 @@ public Int32 getAoiEntityIDFromStream(MemoryStream stream)
14591453 // 如果为0且客户端上一步是重登陆或者重连操作并且服务端entity在断线期间一直处于在线状态
14601454 // 则可以忽略这个错误, 因为cellapp可能一直在向baseapp发送同步消息, 当客户端重连上时未等
14611455 // 服务端初始化步骤开始则收到同步信息, 此时这里就会出错。
1462- if ( _entityIDAliasIDList . Count == 0 )
1456+ if ( _entityIDAliasIDList . Count <= aliasID )
14631457 return 0 ;
14641458
14651459 id = _entityIDAliasIDList [ aliasID ] ;
You can’t perform that action at this time.
0 commit comments