Skip to content

Commit

Permalink
Match LegoActor::SetROI (#1295)
Browse files Browse the repository at this point in the history
  • Loading branch information
foxtacles authored Dec 28, 2024
1 parent 2303daf commit 63bfb95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion LEGO1/lego/legoomni/src/entity/legoactor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ void LegoActor::SetROI(LegoROI* p_roi, MxBool p_bool1, MxBool p_bool2)
if (p_roi) {
const char* name = p_roi->GetName();

for (MxU32 i = 1; i <= sizeOfArray(g_actorNames) - 1; i++) {
for (MxU32 i = 1; i <= sizeOfArray(g_actorNames) - 2; i++) {
if (!strcmpi(name, g_actorNames[i])) {
m_type = e_actor;
m_actorId = i;
Expand Down

0 comments on commit 63bfb95

Please sign in to comment.