FULLPIPE: Fix counter in Scene::objectList_sortByPriority

This commit is contained in:
Retro-Junk 2016-09-27 23:49:27 +03:00 committed by Eugene Sandulenko
parent 5de239e3c6
commit bceeee08d0

View File

@ -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);
}
}