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
@@ -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;