1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-15 01:24:45 +02:00

Fixed crash occurring after casting Armageddon and killing all stacks.

Removed some commented-out code.
This commit is contained in:
Michał W. Urbańczyk
2012-08-31 16:33:30 +00:00
parent 6c84bd9c71
commit 5a157290d9
3 changed files with 17 additions and 236 deletions

View File

@ -614,9 +614,16 @@ void CStackQueue::update()
{
stacksSorted.clear();
owner->curInt->cb->battleGetStackQueue(stacksSorted, stackBoxes.size());
for (int i = 0; i < stackBoxes.size() ; i++)
if(stacksSorted.size())
{
stackBoxes[i]->setStack(stacksSorted[i]);
for (int i = 0; i < stackBoxes.size() ; i++)
{
stackBoxes[i]->setStack(stacksSorted[i]);
}
}
else
{
//no stacks on battlefield... what to do with queue?
}
}