Skip to content
Permalink
Browse files
Merge pull request #8131 from lioncash/move
UICommon/ResourcePack/Manager: Resolve use-after-move in Add()
  • Loading branch information
leoetlino committed May 29, 2019
2 parents 0cfdcf4 + 4d2e0c7 commit 918d707
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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)

0 comments on commit 918d707

Please sign in to comment.