summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-05-06 17:31:02 +0200
committerHowaner <franzi.moos@googlemail.com>2014-05-06 17:31:02 +0200
commit27f95454a9114cad0f199552612ab67ddfe8b5ca (patch)
tree7c58fad87bf690291026a9ff724424d267396838
parentChange int to size_t return. (diff)
downloadcuberite-27f95454a9114cad0f199552612ab67ddfe8b5ca.tar
cuberite-27f95454a9114cad0f199552612ab67ddfe8b5ca.tar.gz
cuberite-27f95454a9114cad0f199552612ab67ddfe8b5ca.tar.bz2
cuberite-27f95454a9114cad0f199552612ab67ddfe8b5ca.tar.lz
cuberite-27f95454a9114cad0f199552612ab67ddfe8b5ca.tar.xz
cuberite-27f95454a9114cad0f199552612ab67ddfe8b5ca.tar.zst
cuberite-27f95454a9114cad0f199552612ab67ddfe8b5ca.zip
-rw-r--r--src/ClientHandle.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/ClientHandle.cpp b/src/ClientHandle.cpp
index b8e61a768..94f031ed6 100644
--- a/src/ClientHandle.cpp
+++ b/src/ClientHandle.cpp
@@ -790,15 +790,10 @@ void cClientHandle::HandleAnvilItemName(const char * a_Data, size_t a_Length)
return;
}
- cByteBuffer Buffer(a_Length);
- Buffer.Write(a_Data, a_Length);
-
- AString Name;
- Buffer.ReadAll(Name);
-
+ AString Name(a_Data, a_Length);
if (Name.length() <= 30)
{
- ((cAnvilWindow&)*m_Player->GetWindow()).SetRepairedItemName(Name, m_Player);
+ ((cAnvilWindow *)m_Player->GetWindow())->SetRepairedItemName(Name, m_Player);
}
}