summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-09-28 14:11:41 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-09-28 14:11:41 +0200
commita9243257e583ae22d7a27f6439f6eb973f7e11ce (patch)
treef9526a0fc87f64dd10fa3f414736009210bb2192
parentSuggestions (diff)
downloadcuberite-a9243257e583ae22d7a27f6439f6eb973f7e11ce.tar
cuberite-a9243257e583ae22d7a27f6439f6eb973f7e11ce.tar.gz
cuberite-a9243257e583ae22d7a27f6439f6eb973f7e11ce.tar.bz2
cuberite-a9243257e583ae22d7a27f6439f6eb973f7e11ce.tar.lz
cuberite-a9243257e583ae22d7a27f6439f6eb973f7e11ce.tar.xz
cuberite-a9243257e583ae22d7a27f6439f6eb973f7e11ce.tar.zst
cuberite-a9243257e583ae22d7a27f6439f6eb973f7e11ce.zip
-rw-r--r--src/BlockEntities/BlockEntityWithItems.h4
-rw-r--r--src/Entities/Minecart.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/BlockEntities/BlockEntityWithItems.h b/src/BlockEntities/BlockEntityWithItems.h
index f26ef07dd..00173cbcb 100644
--- a/src/BlockEntities/BlockEntityWithItems.h
+++ b/src/BlockEntities/BlockEntityWithItems.h
@@ -36,8 +36,8 @@ public:
cWorld * a_World // Optional world to assign to the entity
) :
super(a_BlockType, a_BlockX, a_BlockY, a_BlockZ, a_World),
- m_Contents(a_ItemGridWidth, a_ItemGridHeight),
- cBlockEntityWindowOwner(this)
+ cBlockEntityWindowOwner(this),
+ m_Contents(a_ItemGridWidth, a_ItemGridHeight)
{
m_Contents.AddListener(*this);
}
diff --git a/src/Entities/Minecart.cpp b/src/Entities/Minecart.cpp
index c5e1c07d5..f45e7bb69 100644
--- a/src/Entities/Minecart.cpp
+++ b/src/Entities/Minecart.cpp
@@ -1106,8 +1106,8 @@ void cRideableMinecart::OnRightClicked(cPlayer & a_Player)
cMinecartWithChest::cMinecartWithChest(double a_X, double a_Y, double a_Z) :
super(mpChest, a_X, a_Y, a_Z),
- m_Contents(ContentsWidth, ContentsHeight),
- cEntityWindowOwner(this)
+ cEntityWindowOwner(this),
+ m_Contents(ContentsWidth, ContentsHeight)
{
m_Contents.AddListener(*this);
}