--HG--
branch : trunk
This commit is contained in:
Machiavelli
2010-06-26 13:06:36 +02:00
parent fac0ff3232
commit 23ec7faf73
+1 -1
View File
@@ -16270,7 +16270,7 @@ void Unit::NearTeleportTo(float x, float y, float z, float orientation, bool cas
bool Unit::SetPosition(float x, float y, float z, float orientation, bool teleport) bool Unit::SetPosition(float x, float y, float z, float orientation, bool teleport)
{ {
// prevent crash when a bad coord is sent by the client // prevent crash when a bad coord is sent by the client
if (!Trinity::IsValidMapCoord(x,y,z,o)) if (!Trinity::IsValidMapCoord(x,y,z,orientation))
{ {
sLog.outDebug("Unit::SetPosition(%f, %f, %f) .. bad coordinates!",x,y,z); sLog.outDebug("Unit::SetPosition(%f, %f, %f) .. bad coordinates!",x,y,z);
return false; return false;