mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-17 00:07:41 +02:00
Next part of Seer Hut code, including large number of Components, packs and help functions.
Mapa now contains separate vector of monsters to avoid linear search trough all objects.
This commit is contained in:
@ -1540,6 +1540,7 @@ void Mapa::readObjects( const unsigned char * bufor, int &i)
|
||||
if(version>RoE)
|
||||
{
|
||||
cre->identifier = readNormalNr(bufor,i); i+=4;
|
||||
monsters[cre->identifier] = cre;
|
||||
}
|
||||
cre->army.slots[0].second = readNormalNr(bufor,i, 2); i+=2;
|
||||
cre->character = bufor[i]; ++i;
|
||||
|
Reference in New Issue
Block a user