mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-20 16:59:06 +00:00
FULLPIPE: Fix counter in Scene::objectList_sortByPriority
This commit is contained in:
parent
5de239e3c6
commit
bceeee08d0
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user