mirror of
https://github.com/vcmi/vcmi.git
synced 2025-09-16 09:26:28 +02:00
less leak, bizzare buttons
This commit is contained in:
@@ -32,6 +32,7 @@ AdventureMapButton<T>::AdventureMapButton
|
||||
imgs[0].push_back(temp->ourImages[i].bitmap);
|
||||
CSDL_Ext::blueToPlayersAdv(imgs[curimg][i],LOCPLINT->playerID);
|
||||
}
|
||||
delete temp;
|
||||
if (add)
|
||||
{
|
||||
imgs.resize(imgs.size()+add->size());
|
||||
@@ -43,6 +44,7 @@ AdventureMapButton<T>::AdventureMapButton
|
||||
imgs[i+1].push_back(temp->ourImages[j].bitmap);
|
||||
CSDL_Ext::blueToPlayersAdv(imgs[1+i][j],LOCPLINT->playerID);
|
||||
}
|
||||
delete temp;
|
||||
}
|
||||
delete add;
|
||||
}
|
||||
|
Binary file not shown.
Reference in New Issue
Block a user