mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-01 00:45:26 +02:00
* first part of end of battle window
* fixed heap corruption while exiting battle
This commit is contained in:
@ -2008,8 +2008,13 @@ BattleAction CPlayerInterface::activeStack(int stackID) //called when it's turn
|
||||
|
||||
void CPlayerInterface::battleEnd(BattleResult *br)
|
||||
{
|
||||
boost::unique_lock<boost::mutex> un(*pim);
|
||||
curint->deactivate();
|
||||
((CBattleInterface*)curint)->battleFinished(*br);
|
||||
}
|
||||
|
||||
void CPlayerInterface::battleResultQuited()
|
||||
{
|
||||
//boost::unique_lock<boost::mutex> un(*pim);
|
||||
((CBattleInterface*)curint)->resWindow->deactivate();
|
||||
objsToBlit -= curint;
|
||||
delete curint;
|
||||
curint = adventureInt;
|
||||
|
Reference in New Issue
Block a user