mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-24 08:32:34 +02:00
- fix for missing grail
This commit is contained in:
parent
669c8a104a
commit
2dd9d943c9
@ -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"));
|
||||
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user