mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
Fixed adventure map defs for new creatures.
This commit is contained in:
parent
16adfa3aa7
commit
f38244bb5a
@ -274,8 +274,7 @@ void CModHandler::recreateHandlers()
|
||||
VLC->creh->nameToID[creature->nameSing] = creature->idNumber;
|
||||
|
||||
//generate adventure map object info & graphics
|
||||
CGDefInfo* nobj = new CGDefInfo();
|
||||
nobj = VLC->dobjinfo->gobjs[GameConstants::CREI_TYPE][0]; //copy all typical properties
|
||||
CGDefInfo* nobj = new CGDefInfo (*VLC->dobjinfo->gobjs[GameConstants::CREI_TYPE][0]);//copy all typical properties
|
||||
nobj->name = creature->advMapDef; //change only def name (?)
|
||||
VLC->dobjinfo->gobjs[GameConstants::CREI_TYPE][creature->idNumber] = nobj;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user