1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-12-13 23:57:41 +02:00

- files in local directories (saves & configs) now always have higher

priority than mods. Fixes #1685 and #1733
- fixed possible crash on exit in dispose() function
- (vcmibuilder) fixes problem with partial mp3 -> ogg conversion
This commit is contained in:
Ivan Savenko
2014-03-08 16:05:23 +00:00
parent afcb7072eb
commit d2ae847ecf
13 changed files with 97 additions and 73 deletions

View File

@@ -63,7 +63,7 @@ struct ComponentsToBlit
namespace
{
CDefHandler * ok, *cancel;
CDefHandler * ok = nullptr, *cancel = nullptr;
std::vector<std::vector<SDL_Surface*> > piecesOfBox; //in colors of all players
SDL_Surface * background = nullptr;
}
@@ -100,9 +100,9 @@ void CMessage::init()
void CMessage::dispose()
{
for (int i=0; i<PlayerColor::PLAYER_LIMIT_I; i++)
for (auto & piece : piecesOfBox)
{
for (auto & elem : piecesOfBox[i])
for (auto & elem : piece)
{
SDL_FreeSurface(elem);
}