1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +02:00

Load sounds for new terrains later

This commit is contained in:
Tomasz Zieliński
2022-09-21 13:43:00 +02:00
parent 494b0f0226
commit 11e1bb44a2
4 changed files with 18 additions and 4 deletions

View File

@@ -152,6 +152,10 @@ void CPlayerInterface::init(std::shared_ptr<Environment> ENV, std::shared_ptr<CC
{
cb = CB;
env = ENV;
CCS->soundh->loadHorseSounds();
CCS->musich->loadTerrainSounds();
initializeHeroTownList();
// always recreate advmap interface to avoid possible memory-corruption bugs