mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-28 02:31:15 +00:00
Fix
This commit is contained in:
parent
2299cb86ec
commit
99e6543d96
@ -388,8 +388,8 @@ MxBool LegoInputManager::ProcessOneEvent(LegoEventNotificationParam& p_param)
|
|||||||
p_param.SetROI(roi);
|
p_param.SetROI(roi);
|
||||||
|
|
||||||
if (roi && roi->GetUnknown0x0c() == 1) {
|
if (roi && roi->GetUnknown0x0c() == 1) {
|
||||||
for (OrientableROI* oroi = roi->GetParentROI(); oroi; oroi = oroi->GetParentROI()) {
|
for (OrientableROI* parent = roi->GetParentROI(); parent; parent = parent->GetParentROI()) {
|
||||||
roi = (LegoROI*) oroi;
|
roi = (LegoROI*) parent;
|
||||||
}
|
}
|
||||||
|
|
||||||
LegoEntity* entity = roi->GetEntity();
|
LegoEntity* entity = roi->GetEntity();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user