1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-23 00:28:08 +02:00

Fix incorrect templates for mines in HoTA

This commit is contained in:
Tomasz Zieliński
2022-09-29 19:07:56 +02:00
committed by Andrii Danylchenko
parent 238dabe060
commit 8c481dff46
6 changed files with 48 additions and 85 deletions

View File

@ -490,6 +490,7 @@ bool ObjectManager::addGuard(rmg::Object & object, si32 strength, bool zoneGuard
auto & instance = object.addInstance(*guard);
instance.setPosition(guardPos - object.getPosition());
instance.setAnyTemplate(); //terrain is irrelevant for monsters, but monsters need some template now
return true;
}