Fix for class Bot not honoring NPCType data reference

This commit is contained in:
Uleat
2019-01-26 22:30:49 -05:00
parent 2f3cd45c4a
commit 16036ab492
6 changed files with 311 additions and 176 deletions
+1 -2
View File
@@ -2142,8 +2142,7 @@ bool QuestManager::createBot(const char *name, const char *lastname, uint8 level
return false;
}
NPCType DefaultNPCTypeStruct = Bot::CreateDefaultNPCTypeStructForBot(name, lastname, level, race, botclass, gender);
Bot* NewBot = new Bot(DefaultNPCTypeStruct, initiator);
Bot* NewBot = new Bot(Bot::CreateDefaultNPCTypeStructForBot(name, lastname, level, race, botclass, gender), initiator);
if(NewBot)
{