summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-04-27 17:31:40 +0200
committermadmaxoft <github@xoft.cz>2014-04-27 17:31:58 +0200
commitfdac27c63d2587793de40d9d78eb76386c823b31 (patch)
tree7c2d697dedaf6897ea110f834b6050aa6f25b9d1
parentMerge pull request #948 from jfhumann/staticFixes (diff)
downloadcuberite-fdac27c63d2587793de40d9d78eb76386c823b31.tar
cuberite-fdac27c63d2587793de40d9d78eb76386c823b31.tar.gz
cuberite-fdac27c63d2587793de40d9d78eb76386c823b31.tar.bz2
cuberite-fdac27c63d2587793de40d9d78eb76386c823b31.tar.lz
cuberite-fdac27c63d2587793de40d9d78eb76386c823b31.tar.xz
cuberite-fdac27c63d2587793de40d9d78eb76386c823b31.tar.zst
cuberite-fdac27c63d2587793de40d9d78eb76386c823b31.zip
Diffstat (limited to '')
-rw-r--r--src/Protocol/Protocol17x.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/Protocol/Protocol17x.cpp b/src/Protocol/Protocol17x.cpp
index e57b551cb..8f9e3abd8 100644
--- a/src/Protocol/Protocol17x.cpp
+++ b/src/Protocol/Protocol17x.cpp
@@ -637,9 +637,11 @@ void cProtocol172::SendLoginSuccess(void)
{
ASSERT(m_State == 2); // State: login?
- cPacketizer Pkt(*this, 0x02); // Login success packet
- Pkt.WriteString(m_Client->GetUUID());
- Pkt.WriteString(m_Client->GetUsername());
+ {
+ cPacketizer Pkt(*this, 0x02); // Login success packet
+ Pkt.WriteString(m_Client->GetUUID());
+ Pkt.WriteString(m_Client->GetUsername());
+ }
m_State = 3; // State = Game
}