diff options
author | madmaxoft <github@xoft.cz> | 2014-05-01 22:16:29 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-05-01 22:16:29 +0200 |
commit | 4a952717904436cc92a31505149d1729e2994b68 (patch) | |
tree | d21b857cce4dbac162a597400ab27331a69f1263 /src/Item.h | |
parent | Added a missing return statement. (diff) | |
parent | Merge pull request #973 from mc-server/ItemNoCopyConstructor (diff) | |
download | cuberite-4a952717904436cc92a31505149d1729e2994b68.tar cuberite-4a952717904436cc92a31505149d1729e2994b68.tar.gz cuberite-4a952717904436cc92a31505149d1729e2994b68.tar.bz2 cuberite-4a952717904436cc92a31505149d1729e2994b68.tar.lz cuberite-4a952717904436cc92a31505149d1729e2994b68.tar.xz cuberite-4a952717904436cc92a31505149d1729e2994b68.tar.zst cuberite-4a952717904436cc92a31505149d1729e2994b68.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Item.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Item.h b/src/Item.h index 641c681db..8eb0a1f4e 100644 --- a/src/Item.h +++ b/src/Item.h @@ -73,6 +73,10 @@ public: } + // The constructor is disabled in code, because the compiler generates it anyway, + // but it needs to stay because ToLua needs to generate the binding for it + #if 0 + /** Creates an exact copy of the item */ cItem(const cItem & a_CopyFrom) : m_ItemType (a_CopyFrom.m_ItemType), @@ -85,6 +89,8 @@ public: { } + #endif + void Empty(void) { |