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