1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-17 00:07:41 +02:00

* first part of end of battle window

* fixed heap corruption while exiting battle
This commit is contained in:
mateuszb
2008-09-05 16:08:25 +00:00
parent 6633fb86ef
commit 2af92aa170
6 changed files with 171 additions and 10 deletions

View File

@ -1200,6 +1200,8 @@ bool CGameState::battleShootCreatureStack(int ID, int dest)
int CGameState::battleGetStack(int pos)
{
if(!curB)
return -1;
for(int g=0; g<curB->stacks.size(); ++g)
{
if(curB->stacks[g]->position == pos ||