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:
@ -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 ||
|
||||
|
Reference in New Issue
Block a user