forked from mirror/openmw-tes3mp
Fix potential infinite loop when layer 0 is empty
This commit is contained in:
parent
76c8e81908
commit
9be20b90f1
1 changed files with 3 additions and 0 deletions
|
@ -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…
Reference in a new issue