diff options
| -rw-r--r-- | engines/fullpipe/scene.cpp | 3 | 
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/fullpipe/scene.cpp b/engines/fullpipe/scene.cpp index b03540a5ee..abbb90dba9 100644 --- a/engines/fullpipe/scene.cpp +++ b/engines/fullpipe/scene.cpp @@ -509,7 +509,6 @@ template<typename T>  void Scene::objectList_sortByPriority(Common::Array<T *> &list, int startIndex) {  	if (list.size() > startIndex) {  		int lastIndex = list.size() - 1; -		int count = lastIndex - startIndex;  		bool changed;  		do {  			changed = false; @@ -524,7 +523,7 @@ void Scene::objectList_sortByPriority(Common::Array<T *> &list, int startIndex)  				} else  					refElement = curElement;  			} -			count--; +			lastIndex--;  		} while (changed);  	}  }  | 
