Skip to content

Commit

Permalink
Merge pull request #8131 from lioncash/move
Browse files Browse the repository at this point in the history
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.
2 changes: 1 addition & 1 deletion Source/Core/UICommon/ResourcePack/Manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 918d707

Please sign in to comment.