diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-10-06 21:00:03 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-10-06 21:00:03 +0200 |
commit | 770486d2e11356951aaabcae53995b924eaf8510 (patch) | |
tree | e81c1f5651b352771fc75a1ad0c5cf3c813c87c1 /source/Inventory.cpp | |
parent | Fixed player respawning crashing the server. (diff) | |
download | cuberite-770486d2e11356951aaabcae53995b924eaf8510.tar cuberite-770486d2e11356951aaabcae53995b924eaf8510.tar.gz cuberite-770486d2e11356951aaabcae53995b924eaf8510.tar.bz2 cuberite-770486d2e11356951aaabcae53995b924eaf8510.tar.lz cuberite-770486d2e11356951aaabcae53995b924eaf8510.tar.xz cuberite-770486d2e11356951aaabcae53995b924eaf8510.tar.zst cuberite-770486d2e11356951aaabcae53995b924eaf8510.zip |
Diffstat (limited to 'source/Inventory.cpp')
-rw-r--r-- | source/Inventory.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/Inventory.cpp b/source/Inventory.cpp index c35a6c5d0..5ed2e0763 100644 --- a/source/Inventory.cpp +++ b/source/Inventory.cpp @@ -73,11 +73,11 @@ bool cInventory::AddItem( cItem & a_Item ) return false; } - for(unsigned int i = 0; i < c_NumSlots; i++) + for (unsigned int i = 0; i < c_NumSlots; i++) { - if( ChangedSlots[i] ) + if (ChangedSlots[i]) { - LOG("Item was added to %i ID:%i Count:%i", i, m_Slots[i].m_ItemID, m_Slots[i].m_ItemCount ); + LOGD("cInventory::AddItem(): Item was added to %i ID:%i Count:%i", i, m_Slots[i].m_ItemID, m_Slots[i].m_ItemCount); SendSlot(i); } } |