1
0
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:
mateuszb
2008-01-21 18:08:53 +00:00
parent 7cb9c879ca
commit f0186c3858
2 changed files with 2 additions and 0 deletions

View File

@@ -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.