Added merc pointer initialization to avoid an invalid pointer condition

This commit is contained in:
Uleat 2015-05-18 20:40:57 -04:00
parent 553b7c9f8c
commit 4266f45295

View File

@ -2183,7 +2183,7 @@ const NPCType* ZoneDatabase::GetMercType(uint32 id, uint16 raceid, uint32 client
return nullptr; return nullptr;
} }
const NPCType *npc; const NPCType *npc = nullptr;
// Process each row returned. // Process each row returned.
for (auto row = results.begin(); row != results.end(); ++row) { for (auto row = results.begin(); row != results.end(); ++row) {