Jump to content

[patch][8066] return TeleportTo fix

Auntie Mangos

Recommended Posts

What bug does the patch fix? What features does the patch add?

Function TeleportTo should return 6 parameters, not 5.

For which repository revision was the patch created?


Is there a thread in the bug report section or at lighthouse? If yes, please add a link to the thread.

No. There is no Thread.

Who has been writing this patch? Please include either forum user names or email addresses.


diff --git a/src/game/Player.h b/src/game/Player.h
index 02d8f30..734faba 100644
--- a/src/game/Player.h
+++ b/src/game/Player.h
@@ -885,7 +885,7 @@ class MANGOS_DLL_SPEC Player : public Unit

        bool TeleportTo(WorldLocation const &loc, uint32 options = 0)
-            return TeleportTo(loc.mapid, loc.coord_x, loc.coord_y, loc.coord_z, options);
+            return TeleportTo(loc.mapid, loc.coord_x, loc.coord_y, loc.coord_z, loc.orientation, options);

        void SetSummonPoint(uint32 mapid, float x, float y, float z)

Link to comment
Share on other sites

  • 39 years later...
This topic is now closed to further replies.
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use