Merge pull request #8131 from lioncash/move

UICommon/ResourcePack/Manager: Resolve use-after-move in Add()
This commit is contained in:
Léo Lam 2019-05-29 13:24:08 +02:00 committed by GitHub
commit 918d707f3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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