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));
|
||||
|
||||
return pack.IsValid();
|
||||
return true;
|
||||
}
|
||||
|
||||
bool Remove(ResourcePack& pack)
|
||||
|
|
Loading…
Reference in New Issue