1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-27 22:49:25 +02:00

Created large number of missing objects in configs

Minor bugfixes in code
This commit is contained in:
Ivan Savenko
2014-06-17 14:57:47 +03:00
parent 09d595e385
commit 0a71e89f58
8 changed files with 123 additions and 44 deletions

View File

@@ -336,7 +336,8 @@ void CGObjectInstance::setType(si32 ID, si32 subID)
//recalculate blockvis tiles - new appearance might have different blockmap than before
cb->gameState()->map->removeBlockVisTiles(this, true);
this->appearance = VLC->objtypeh->getHandlerFor(ID, subID)->getTemplates(tile.terType).at(0);
auto handler = VLC->objtypeh->getHandlerFor(ID, subID);
appearance = handler->getTemplates(tile.terType).at(0);
cb->gameState()->map->addBlockVisTiles(this);
}