1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-26 22:57:00 +02:00

Fixed Clone links cleanup.

This commit is contained in:
AlexVinS 2016-09-23 12:20:41 +03:00
parent bd79298ca6
commit 44753866ec

View File

@ -1712,6 +1712,13 @@ DLL_LINKAGE void BattleStacksRemoved::applyGs( CGameState *gs )
toRemove->cloneID = -1; toRemove->cloneID = -1;
} }
//cleanup remaining clone links if any
for(CStack * s : gs->curB->stacks)
{
if(s->cloneID == toRemove->ID)
s->cloneID = -1;
}
break; break;
} }
} }