mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-27 22:49:25 +02:00
Fixes for multiple new issues from Sonar
This commit is contained in:
@@ -156,7 +156,7 @@ void CQuest::completeQuest(IGameCallback * cb, const CGHeroInstance *h) const
|
||||
const auto * assembly = h->getCombinedArtWithPart(elem);
|
||||
if (assembly)
|
||||
{
|
||||
auto parts = assembly->getPartsInfo(); // FIXME: causes crashes on Google Play
|
||||
auto parts = assembly->getPartsInfo();
|
||||
|
||||
// Remove the assembly
|
||||
cb->removeArtifact(ArtifactLocation(h->id, h->getArtPos(assembly)));
|
||||
|
||||
Reference in New Issue
Block a user