diff options
author | Machiavelli <none@none> | 2009-06-09 21:56:56 +0200 |
---|---|---|
committer | Machiavelli <none@none> | 2009-06-09 21:56:56 +0200 |
commit | 1afdfd91066805cac42e4d73fcac78591c139c89 (patch) | |
tree | fdeb525bd9bd8dd84351dea70e0c8766a04a101d /src/game/Debugcmds.cpp | |
parent | 41baf8b0d34dba1bd579831fe77bcc785f857f9b (diff) | |
parent | c5232138f870a8a4e5a59ecb3e0a3228373f58e2 (diff) |
Merge
--HG--
branch : trunk
Diffstat (limited to 'src/game/Debugcmds.cpp')
-rw-r--r-- | src/game/Debugcmds.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/game/Debugcmds.cpp b/src/game/Debugcmds.cpp index 196816fff02..2e432ab1c0f 100644 --- a/src/game/Debugcmds.cpp +++ b/src/game/Debugcmds.cpp @@ -43,7 +43,7 @@ bool ChatHandler::HandleDebugSendSpellFailCommand(const char* args) return false; char* px = strtok((char*)args, " "); - if(!px) + if (!px) return false; uint8 failnum = (uint8)atoi(px); @@ -56,14 +56,13 @@ bool ChatHandler::HandleDebugSendSpellFailCommand(const char* args) char* p2 = strtok(NULL, " "); uint8 failarg2 = p2 ? (uint8)atoi(p2) : 0; - WorldPacket data(SMSG_CAST_FAILED, 5); data << uint8(0); data << uint32(133); data << uint8(failnum); - if(p1 || p2) + if (p1 || p2) data << uint32(failarg1); - if(p2) + if (p2) data << uint32(failarg2); m_session->SendPacket(&data); |