mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-16 06:39:17 +00:00
FULLPIPE: Add missing list purge in MovGraph2::findMinPath
This commit is contained in:
parent
68508cb87e
commit
35a1ad3463
@ -2818,6 +2818,8 @@ double MovGraph2::findMinPath(LinkInfo *linkInfoSource, LinkInfo *linkInfoDest,
|
||||
newDistance = findMinPath(&linkInfoWorkSource, linkInfoDest, &tmpList);
|
||||
|
||||
if (newDistance >= 0 && (minDistance < 0.0 || newDistance < minDistance)) {
|
||||
listObj->clear();
|
||||
|
||||
listObj->push_back(linkInfoSource->link);
|
||||
listObj->push_back(tmpList);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user