From 9be20b90f1bfa0fea800f12db2f176371a4bd33d Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 25 Apr 2013 03:35:40 -0700 Subject: [PATCH] Fix potential infinite loop when layer 0 is empty --- apps/openmw/mwrender/animation.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/openmw/mwrender/animation.cpp b/apps/openmw/mwrender/animation.cpp index 7383734ee1..81701c65ec 100644 --- a/apps/openmw/mwrender/animation.cpp +++ b/apps/openmw/mwrender/animation.cpp @@ -228,7 +228,10 @@ void Animation::updateActiveControllers() } } if(ctrls == NULL) + { + layer++; continue; + } /* Check if any objectlists are active on subsequent layers. Include * those layers if not.