summaryrefslogtreecommitdiffstats
path: root/src/Items/ItemEmptyMap.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-04-04 09:56:57 +0200
committermadmaxoft <github@xoft.cz>2014-04-04 09:56:57 +0200
commit402d85d896c793644681c4bb2934a7e0abb5ed8c (patch)
tree1cf3fa3d08cf88829695f8d063e3132be3f9e9b9 /src/Items/ItemEmptyMap.h
parentProtoProxy: Fixed a few Clang and MSVC warnings. (diff)
downloadcuberite-402d85d896c793644681c4bb2934a7e0abb5ed8c.tar
cuberite-402d85d896c793644681c4bb2934a7e0abb5ed8c.tar.gz
cuberite-402d85d896c793644681c4bb2934a7e0abb5ed8c.tar.bz2
cuberite-402d85d896c793644681c4bb2934a7e0abb5ed8c.tar.lz
cuberite-402d85d896c793644681c4bb2934a7e0abb5ed8c.tar.xz
cuberite-402d85d896c793644681c4bb2934a7e0abb5ed8c.tar.zst
cuberite-402d85d896c793644681c4bb2934a7e0abb5ed8c.zip
Diffstat (limited to '')
-rw-r--r--src/Items/ItemEmptyMap.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Items/ItemEmptyMap.h b/src/Items/ItemEmptyMap.h
index f0b1e1424..953673382 100644
--- a/src/Items/ItemEmptyMap.h
+++ b/src/Items/ItemEmptyMap.h
@@ -55,7 +55,7 @@ public:
return true;
}
- a_Player->GetInventory().AddItem(cItem(E_ITEM_MAP, 1, NewMap->GetID()), true, true);
+ a_Player->GetInventory().AddItem(cItem(E_ITEM_MAP, 1, (short)(NewMap->GetID() & 0x7fff)), true, true);
return true;
}