Fix zone startup crash if maps not installed

This commit is contained in:
hg committed 2021-01-08 20:55:56 -05:00
1 parent 0f5a7e1317
commit 896dd48960
3 files changed
+5 -3

No files matched your search

+1 -1
View File
@@ -1637,7 +1637,7 @@ void NPC::AI_DoMovement() {
roambox_destination_y,
m_Position.z + 15
);
if (!zone->watermap->InLiquid(position)) {
if (zone->HasWaterMap() && !zone->watermap->InLiquid(position)) {
roambox_destination_x = m_SpawnPoint.x;
roambox_destination_y = m_SpawnPoint.y;
roambox_destination_z = m_SpawnPoint.z;