Browse Source

Linux compile fix

LethalEncounter 4 years ago
parent
commit
9554876c2f
1 changed files with 2 additions and 1 deletions
  1. 2 1
      EQ2/source/WorldServer/client.cpp

+ 2 - 1
EQ2/source/WorldServer/client.cpp

@@ -8148,7 +8148,8 @@ bool Client::ShowPathToTarget(float x, float y, float z, float y_offset) {
 				return false;
 			if (z < current_zone->zonemap->GetMinZ() || z > current_zone->zonemap->GetMaxZ())
 				return false;
-			float new_z = current_zone->zonemap->FindBestZ(glm::vec3(x, z, y), nullptr);
+			auto loc = glm::vec3(x, z, y);
+			float new_z = current_zone->zonemap->FindBestZ(loc, nullptr);
 			if (new_z != BEST_Z_INVALID) //this is actually y
 				y = new_z;
 		}