mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-01 01:52:02 +00:00
Added merc pointer initialization to avoid an invalid pointer condition
This commit is contained in:
+1
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user