数组越界修改

This commit is contained in:
账号名 2023-11-23 10:15:54 +08:00
parent 4f4caf1986
commit 34f683fbca
1 changed files with 1 additions and 0 deletions

View File

@ -28,6 +28,7 @@ public class DeviceManager : MonoSingleton<DeviceManager>
{
data = data.Replace("send2room", "");
string[] info = data.Split(',');
if (info.Length < 2) return;
EquipmentCommon equipmentCommon = devices.Find(x => x.deviceID == info[1]);
if (equipmentCommon)
{