summaryrefslogtreecommitdiffstats
path: root/source/blocks/Block.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-08-28 23:58:33 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-08-28 23:58:33 +0200
commit0425d8c8a5f68ca571da87086180070f26156e82 (patch)
treec0f7d86db1260602a2cdffc24f8c23fcd2a10b2e /source/blocks/Block.cpp
parentRemoved false positives in leakfinder for webserver - by using raw char arrays instead of std::string for const data. (diff)
downloadcuberite-0425d8c8a5f68ca571da87086180070f26156e82.tar
cuberite-0425d8c8a5f68ca571da87086180070f26156e82.tar.gz
cuberite-0425d8c8a5f68ca571da87086180070f26156e82.tar.bz2
cuberite-0425d8c8a5f68ca571da87086180070f26156e82.tar.lz
cuberite-0425d8c8a5f68ca571da87086180070f26156e82.tar.xz
cuberite-0425d8c8a5f68ca571da87086180070f26156e82.tar.zst
cuberite-0425d8c8a5f68ca571da87086180070f26156e82.zip
Diffstat (limited to 'source/blocks/Block.cpp')
-rw-r--r--source/blocks/Block.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blocks/Block.cpp b/source/blocks/Block.cpp
index 2fa1ba718..3d2fe23e6 100644
--- a/source/blocks/Block.cpp
+++ b/source/blocks/Block.cpp
@@ -261,10 +261,10 @@ void cBlockHandler::DropBlock(cWorld *a_World, int a_X, int a_Y, int a_Z)
cItems Drops;
NIBBLETYPE Meta = a_World->GetBlockMeta(a_X, a_Y, a_Z);
char DropCount = GetDropCount();
- int DropItem = GetDropID();
- if(DropCount > 0 && DropItem != E_ITEM_EMPTY)
+ short DropItem = (short)GetDropID();
+ if (DropCount > 0 && (DropItem != E_ITEM_EMPTY))
{
- Drops.push_back(cItem((ENUM_ITEM_ID)DropItem, DropCount, GetDropMeta(Meta)));
+ Drops.push_back(cItem(DropItem, DropCount, GetDropMeta(Meta)));
a_World->SpawnItemPickups(Drops, a_X, a_Y, a_Z);
}
}