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

Fixed minor issues discovered during testing

This commit is contained in:
Ivan Savenko
2023-03-02 16:08:02 +02:00
parent 165f6a0944
commit b61cae5b37
4 changed files with 8 additions and 9 deletions

View File

@@ -194,7 +194,8 @@ MapAudioPlayer::MapAudioPlayer()
objects.resize(boost::extents[mapSize.z][mapSize.x][mapSize.y]);
for(const auto & obj : CGI->mh->getMap()->objects)
addObject(obj);
if (obj)
addObject(obj);
}
MapAudioPlayer::~MapAudioPlayer()