Fix zone startup crash if maps not installed

This commit is contained in:
hg
2020-08-21 18:10:27 -04:00
parent 0f5a7e1317
commit 896dd48960
3 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -463,7 +463,7 @@ void Object::RandomSpawn(bool send_packet) {
m_data.x = zone->random.Real(m_min_x, m_max_x);
m_data.y = zone->random.Real(m_min_y, m_max_y);
if(m_data.z == BEST_Z_INVALID) {
if (m_data.z == BEST_Z_INVALID && zone->HasMap()) {
glm::vec3 me;
me.x = m_data.x;
me.y = m_data.y;