Core/Maps: Prevent creating maps without a valid Map.dbc entry
Closes #9181
This commit is contained in:
1 parent
771598b67a
commit
d232977ec4
3 files changed
+10
-6
No files matched your search
@@ -7376,6 +7376,9 @@ uint32 Player::GetZoneIdFromDB(uint64 guid)
|
||||
float posy = fields[2].GetFloat();
|
||||
float posz = fields[3].GetFloat();
|
||||
|
||||
if (!sMapStore.LookupEntry(map))
|
||||
return 0;
|
||||
|
||||
zone = sMapMgr->GetZoneId(map, posx, posy, posz);
|
||||
|
||||
if (zone > 0)
|
||||
|
||||
Reference in new issue
Block a user