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:
parent
bd79298ca6
commit
44753866ec
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user