diff options
author | Howaner <franzi.moos@googlemail.com> | 2014-03-14 23:52:51 +0100 |
---|---|---|
committer | Howaner <franzi.moos@googlemail.com> | 2014-03-14 23:52:51 +0100 |
commit | ccc29c7c6c344b00e5b6c9236cf615b253b9a1b5 (patch) | |
tree | 990c8ee65902d303c9bdbe0b0ca98759843febae /src/Items/ItemItemFrame.h | |
parent | Change tnt documentation to ticks (diff) | |
download | cuberite-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 'src/Items/ItemItemFrame.h')
-rw-r--r-- | src/Items/ItemItemFrame.h | 6 |
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()) { |