[Bug Fix] Fix issue with spawning Mercs (#3327)

This commit is contained in:
Aeadoin 2023-04-29 18:45:35 -04:00 committed by GitHub
parent 958549b407
commit db916e946e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4302,7 +4302,7 @@ Merc* Merc::LoadMerc(Client *c, MercTemplate* merc_template, uint32 merchant_id,
const NPCType* npc_type_to_copy = nullptr;
if (c) {
const NPCType* npc_type_to_copy = content_db.GetMercType(merc_template->MercNPCID, merc_template->RaceID, c->GetLevel());
npc_type_to_copy = content_db.GetMercType(merc_template->MercNPCID, merc_template->RaceID, c->GetLevel());
}
if(npc_type_to_copy != nullptr)