Fixed issue 551, "this vector contains over 1 million members" crash.

Thanks to Mike for helping me with the repro & debug session on his machine.
This commit is contained in:
wrenczes@gmail.com
2010-12-12 09:44:45 +00:00
parent 01ac3d1a55
commit 4d0296d628

View File

@@ -580,7 +580,7 @@ int GuiCombat::receiveEventMinus(WEvent* e)
(*it)->show = (1 < (*it)->blockers.size());
autoaffectDamage(*it, DAMAGE);
}
active = NULL;
active = activeAtk = NULL;
for (inner_iterator it = attackers.begin(); it != attackers.end(); ++it)
if ((*it)->show)
{
@@ -633,7 +633,7 @@ int GuiCombat::receiveEventMinus(WEvent* e)
== step))) && (((*it)->card->has(Constants::TRAMPLE) ? (size_t) 0 : (size_t) 1)
< (*it)->blockers.size());
repos<AttackerDamaged> (attackers.begin(), attackers.end(), 0);
active = NULL;
active = activeAtk = NULL;
for (inner_iterator it = attackers.begin(); it != attackers.end(); ++it)
if ((*it)->show)
{