aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMachiavelli <machiavelli.trinity@gmail.com>2011-11-20 13:46:53 +0100
committerMachiavelli <machiavelli.trinity@gmail.com>2011-11-20 13:46:53 +0100
commit682c3289c71b4135c41f0fe6628f1b71bace47d2 (patch)
treeddba3a7af2aaf7442bf725df1089cd31c66e7a4d /src
parent831f2f4a9dedb6ca4ef422bd725ca7b95a2988c2 (diff)
Tabs
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/Commands/cs_tele.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/server/scripts/Commands/cs_tele.cpp b/src/server/scripts/Commands/cs_tele.cpp
index 9ee05361953..8bfa010463a 100644
--- a/src/server/scripts/Commands/cs_tele.cpp
+++ b/src/server/scripts/Commands/cs_tele.cpp
@@ -125,15 +125,15 @@ public:
if (!handler->extractPlayerTarget(nameStr, &target, &target_guid, &target_name))
return false;
- if (strcmp(teleStr, "$home") == 0) // References target's homebind
- {
+ if (strcmp(teleStr, "$home") == 0) // References target's homebind
+ {
if (target)
target->TeleportTo(target->m_homebindMapId, target->m_homebindX, target->m_homebindY, target->m_homebindZ, target->GetOrientation());
else
- {
+ {
QueryResult resultDB = CharacterDatabase.PQuery("SELECT mapId, zoneId, posX, posY, posZ FROM character_homebind WHERE guid = %u", target_guid);
if (resultDB)
- {
+ {
Field* fieldsDB = resultDB->Fetch();
uint32 mapId = fieldsDB[0].GetUInt32();
uint32 zoneId = fieldsDB[1].GetUInt32();