Core/MMaps: Removed an incorrect call to GetHeight

Tools/MeshExtractor: Fixed a crash caused by calling fclose in a NULL stream
This commit is contained in:
Subv
2012-09-29 16:19:33 -05:00
parent 987436ceea
commit 5c9e917e5e
2 changed files with 3 additions and 6 deletions
+1 -5
View File
@@ -58,12 +58,8 @@ bool PathGenerator::CalculatePath(float destX, float destY, float destZ, bool fo
if (!Trinity::IsValidMapCoord(destX, destY, destZ) || !Trinity::IsValidMapCoord(x, y, z))
return false;
float newDestZ = _sourceUnit->GetBaseMap()->GetHeight(_sourceUnit->GetPhaseMask(), x, y, z, true, MAX_FALL_DISTANCE);
if (newDestZ <= INVALID_HEIGHT)
return false;
Vector3 oldDest = GetEndPosition();
Vector3 dest(destX, destY, newDestZ);
Vector3 dest(destX, destY, destZ);
SetEndPosition(dest);
Vector3 start(x, y, z);