From f38244bb5ac3cba1d3fcefbe78867c85d6da5c2d Mon Sep 17 00:00:00 2001 From: DjWarmonger Date: Fri, 21 Sep 2012 08:08:18 +0000 Subject: [PATCH] Fixed adventure map defs for new creatures. --- lib/CModHandler.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/CModHandler.cpp b/lib/CModHandler.cpp index b8d5550b8..c071235d2 100644 --- a/lib/CModHandler.cpp +++ b/lib/CModHandler.cpp @@ -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; }