1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-15 00:05:02 +02:00

Do not build pseudo-buildings explicitly with events

This commit is contained in:
Dydzio
2019-06-04 22:29:07 +02:00
parent b16af04a09
commit 2f15ca9406
2 changed files with 13 additions and 13 deletions

View File

@ -3009,7 +3009,7 @@ bool CGameHandler::buildStructure(ObjectInstanceID tid, BuildingID requestedID,
if (!t)
COMPLAIN_RETF("No such town (ID=%s)!", tid);
if (!t->town->buildings.count(requestedID))
COMPLAIN_RETF("Town of faction %s does not have info about building ID=%s!", t->town->faction->name % tid);
COMPLAIN_RETF("Town of faction %s does not have info about building ID=%s!", t->town->faction->name % requestedID);
if (t->hasBuilt(requestedID))
COMPLAIN_RETF("Building %s is already built in %s", t->town->buildings.at(requestedID)->Name() % t->name);