mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 13:41:31 +00:00
Added merc pointer initialization to avoid an invalid pointer condition
This commit is contained in:
parent
553b7c9f8c
commit
4266f45295
@ -2183,7 +2183,7 @@ const NPCType* ZoneDatabase::GetMercType(uint32 id, uint16 raceid, uint32 client
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
const NPCType *npc;
|
||||
const NPCType *npc = nullptr;
|
||||
|
||||
// Process each row returned.
|
||||
for (auto row = results.begin(); row != results.end(); ++row) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user