mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-14 00:09:24 +01:00
UICommon/ResourcePack/Manager: Resolve use-after-move in Add()
The pack is already has its validity checked at the beginning of the function, so we don't need to check this again after inserting it. Also resolves a use-after-move case.
This commit is contained in:
parent
992c8bfc4e
commit
4d2e0c7b48
@ -128,7 +128,7 @@ bool Add(const std::string& path, int offset)
|
|||||||
|
|
||||||
packs.insert(packs.begin() + offset, std::move(pack));
|
packs.insert(packs.begin() + offset, std::move(pack));
|
||||||
|
|
||||||
return pack.IsValid();
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Remove(ResourcePack& pack)
|
bool Remove(ResourcePack& pack)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user