Created large number of missing objects in configs

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

No files matched your search

+2 -1
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);
}