summaryrefslogtreecommitdiffstats
path: root/src/Items/ItemItemFrame.h
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-03-14 23:52:51 +0100
committerHowaner <franzi.moos@googlemail.com>2014-03-14 23:52:51 +0100
commitccc29c7c6c344b00e5b6c9236cf615b253b9a1b5 (patch)
tree990c8ee65902d303c9bdbe0b0ca98759843febae /src/Items/ItemItemFrame.h
parentChange tnt documentation to ticks (diff)
downloadcuberite-ccc29c7c6c344b00e5b6c9236cf615b253b9a1b5.tar
cuberite-ccc29c7c6c344b00e5b6c9236cf615b253b9a1b5.tar.gz
cuberite-ccc29c7c6c344b00e5b6c9236cf615b253b9a1b5.tar.bz2
cuberite-ccc29c7c6c344b00e5b6c9236cf615b253b9a1b5.tar.lz
cuberite-ccc29c7c6c344b00e5b6c9236cf615b253b9a1b5.tar.xz
cuberite-ccc29c7c6c344b00e5b6c9236cf615b253b9a1b5.tar.zst
cuberite-ccc29c7c6c344b00e5b6c9236cf615b253b9a1b5.zip
Diffstat (limited to '')
-rw-r--r--src/Items/ItemItemFrame.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Items/ItemItemFrame.h b/src/Items/ItemItemFrame.h
index 74e987445..27e7dba35 100644
--- a/src/Items/ItemItemFrame.h
+++ b/src/Items/ItemItemFrame.h
@@ -34,7 +34,11 @@ public:
if (Block == E_BLOCK_AIR)
{
cItemFrame * ItemFrame = new cItemFrame(a_Dir, a_BlockX, a_BlockY, a_BlockZ);
- ItemFrame->Initialize(a_World);
+ if (!ItemFrame->Initialize(a_World))
+ {
+ delete ItemFrame;
+ return false;
+ }
if (!a_Player->IsGameModeCreative())
{