diff options
author | worktycho <work.tycho@gmail.com> | 2014-06-04 13:23:28 +0200 |
---|---|---|
committer | worktycho <work.tycho@gmail.com> | 2014-06-04 13:23:28 +0200 |
commit | 2de36c8ccc058429c74e139a97d832c29e04b8fb (patch) | |
tree | 612af1395f17af0c2fb7efff7fc9fa5f63d6bfca | |
parent | Fixed buffer overflow in JSON. (diff) | |
parent | derp (diff) | |
download | cuberite-2de36c8ccc058429c74e139a97d832c29e04b8fb.tar cuberite-2de36c8ccc058429c74e139a97d832c29e04b8fb.tar.gz cuberite-2de36c8ccc058429c74e139a97d832c29e04b8fb.tar.bz2 cuberite-2de36c8ccc058429c74e139a97d832c29e04b8fb.tar.lz cuberite-2de36c8ccc058429c74e139a97d832c29e04b8fb.tar.xz cuberite-2de36c8ccc058429c74e139a97d832c29e04b8fb.tar.zst cuberite-2de36c8ccc058429c74e139a97d832c29e04b8fb.zip |
Diffstat (limited to '')
-rw-r--r-- | src/ClientHandle.cpp | 2 | ||||
-rw-r--r-- | src/PolarSSL++/AesCfb128Decryptor.h | 1 | ||||
-rw-r--r-- | src/PolarSSL++/CallbackSslContext.cpp | 3 | ||||
-rw-r--r-- | src/UI/SlotArea.cpp | 4 |
4 files changed, 6 insertions, 4 deletions
diff --git a/src/ClientHandle.cpp b/src/ClientHandle.cpp index 080e859d1..d47ceff0e 100644 --- a/src/ClientHandle.cpp +++ b/src/ClientHandle.cpp @@ -1306,7 +1306,7 @@ void cClientHandle::HandlePlaceBlock(int a_BlockX, int a_BlockY, int a_BlockZ, e if (!a_ItemHandler.GetPlacementBlockTypeMeta(World, m_Player, a_BlockX, a_BlockY, a_BlockZ, a_BlockFace, a_CursorX, a_CursorY, a_CursorZ, BlockType, BlockMeta)) { // Handler refused the placement, send that information back to the client: - World->SendBlockTo(a_BlockX, a_BlockY, a_BlockY, m_Player); + World->SendBlockTo(a_BlockX, a_BlockY, a_BlockZ, m_Player); m_Player->GetInventory().SendEquippedSlot(); return; } diff --git a/src/PolarSSL++/AesCfb128Decryptor.h b/src/PolarSSL++/AesCfb128Decryptor.h index 68c203d70..84c790b83 100644 --- a/src/PolarSSL++/AesCfb128Decryptor.h +++ b/src/PolarSSL++/AesCfb128Decryptor.h @@ -19,7 +19,6 @@ class cAesCfb128Decryptor { public: - Byte test; cAesCfb128Decryptor(void); ~cAesCfb128Decryptor(); diff --git a/src/PolarSSL++/CallbackSslContext.cpp b/src/PolarSSL++/CallbackSslContext.cpp index 0cc88a14a..c4d19b2a0 100644 --- a/src/PolarSSL++/CallbackSslContext.cpp +++ b/src/PolarSSL++/CallbackSslContext.cpp @@ -11,7 +11,8 @@ -cCallbackSslContext::cCallbackSslContext(void) +cCallbackSslContext::cCallbackSslContext(void) : + m_Callbacks(NULL) { // Nothing needed, but the constructor needs to exist so } diff --git a/src/UI/SlotArea.cpp b/src/UI/SlotArea.cpp index 59a6384b1..728692f2a 100644 --- a/src/UI/SlotArea.cpp +++ b/src/UI/SlotArea.cpp @@ -625,7 +625,8 @@ void cSlotAreaCrafting::HandleCraftItem(const cItem & a_Result, cPlayer & a_Play cSlotAreaAnvil::cSlotAreaAnvil(cAnvilWindow & a_ParentWindow) : cSlotAreaTemporary(3, a_ParentWindow), - m_MaximumCost(0) + m_MaximumCost(0), + m_StackSizeToBeUsedInRepair(0) { } @@ -796,6 +797,7 @@ void cSlotAreaAnvil::OnTakeResult(cPlayer & a_Player) { cItem NewSecondItem(*Item); NewSecondItem.m_ItemCount -= m_StackSizeToBeUsedInRepair; + m_StackSizeToBeUsedInRepair = 0; SetSlot(1, a_Player, NewSecondItem); } else |