mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-27 22:49:25 +02:00
- fix for missing grail
This commit is contained in:
@@ -89,6 +89,17 @@ void CBuildingHandler::loadBuildings()
|
|||||||
while (!parser.isNextEntryEmpty());
|
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*****************************
|
/////done reading BUILDING.TXT*****************************
|
||||||
const JsonNode config(ResourceID("config/hall.json"));
|
const JsonNode config(ResourceID("config/hall.json"));
|
||||||
|
|
||||||
|
|||||||
@@ -37,11 +37,11 @@ DLL_LINKAGE void initDLL(CConsoleHandler *Console, std::ostream *Logfile)
|
|||||||
console = Console;
|
console = Console;
|
||||||
logfile = Logfile;
|
logfile = Logfile;
|
||||||
VLC = new LibClasses;
|
VLC = new LibClasses;
|
||||||
//try
|
try
|
||||||
{
|
{
|
||||||
VLC->init();
|
VLC->init();
|
||||||
}
|
}
|
||||||
//HANDLE_EXCEPTION;
|
HANDLE_EXCEPTION;
|
||||||
}
|
}
|
||||||
|
|
||||||
void LibClasses::loadFilesystem()
|
void LibClasses::loadFilesystem()
|
||||||
|
|||||||
Reference in New Issue
Block a user