mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-27 22:49:25 +02:00
Map/Road/River identifiers are now private members
This commit is contained in:
@@ -136,8 +136,8 @@ BattleInterface::~BattleInterface()
|
||||
if (adventureInt && adventureInt->selection)
|
||||
{
|
||||
//FIXME: this should be moved to adventureInt which should restore correct track based on selection/active player
|
||||
const auto & terrain = *(LOCPLINT->cb->getTile(adventureInt->selection->visitablePos())->terType);
|
||||
CCS->musich->playMusicFromSet("terrain", terrain.name, true, false);
|
||||
const auto * terrain = LOCPLINT->cb->getTile(adventureInt->selection->visitablePos())->terType;
|
||||
CCS->musich->playMusicFromSet("terrain", terrain->getName(), true, false);
|
||||
}
|
||||
|
||||
// may happen if user decided to close game while in battle
|
||||
|
||||
Reference in New Issue
Block a user