1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

- fix for missing grail

This commit is contained in:
Ivan Savenko 2012-08-25 13:29:46 +00:00
parent 669c8a104a
commit 2dd9d943c9
2 changed files with 13 additions and 2 deletions

View File

@ -89,6 +89,17 @@ void CBuildingHandler::loadBuildings()
while (!parser.isNextEntryEmpty());
}
// Grail. It may not have entries in building.txt
for (size_t town=0; town<GameConstants::F_NUMBER; town++)
{
if (!vstd::contains(buildings[town], 26))
{
buildings[town][26] = new CBuilding();
buildings[town][26]->tid = town;
buildings[town][26]->bid = 26;
}
}
/////done reading BUILDING.TXT*****************************
const JsonNode config(ResourceID("config/hall.json"));

View File

@ -37,11 +37,11 @@ DLL_LINKAGE void initDLL(CConsoleHandler *Console, std::ostream *Logfile)
console = Console;
logfile = Logfile;
VLC = new LibClasses;
//try
try
{
VLC->init();
}
//HANDLE_EXCEPTION;
HANDLE_EXCEPTION;
}
void LibClasses::loadFilesystem()