From 0ab8ebb770aa73813bc54cde5404f96505944249 Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Wed, 3 Jan 2024 15:13:20 -0500 Subject: [PATCH] WIP --- LEGO1/mxdirect3d.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LEGO1/mxdirect3d.cpp b/LEGO1/mxdirect3d.cpp index b38a5cc6..b3932283 100644 --- a/LEGO1/mxdirect3d.cpp +++ b/LEGO1/mxdirect3d.cpp @@ -454,7 +454,7 @@ MxS32 MxDeviceEnumerate::ProcessDeviceBytes(MxS32 p_num, DeviceHex& p_deviceHex) DeviceHex deviceHex = p_deviceHex; for (list::iterator it = m_list.begin(); it != m_list.end(); it++) { - if (p_num >= 0 && p_num > i) + if (p_num >= 0 && p_num < i) return -1; MxDeviceEnumerateElement& elem = *it;