mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-25 15:35:23 +00:00
Fix potential infinite loop when layer 0 is empty
This commit is contained in:
parent
76c8e81908
commit
9be20b90f1
@ -228,7 +228,10 @@ void Animation::updateActiveControllers()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(ctrls == NULL)
|
if(ctrls == NULL)
|
||||||
|
{
|
||||||
|
layer++;
|
||||||
continue;
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
/* Check if any objectlists are active on subsequent layers. Include
|
/* Check if any objectlists are active on subsequent layers. Include
|
||||||
* those layers if not.
|
* those layers if not.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user