From b53b40b5610c456176f4b7962e1af1cc49562930 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Tue, 7 Aug 2012 12:05:35 +0000 Subject: Prepared WindowOwner class hierarchy for minecart with chest. git-svn-id: http://mc-server.googlecode.com/svn/trunk@719 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cFurnaceEntity.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/cFurnaceEntity.cpp') diff --git a/source/cFurnaceEntity.cpp b/source/cFurnaceEntity.cpp index f127e05e8..6fe1936e9 100644 --- a/source/cFurnaceEntity.cpp +++ b/source/cFurnaceEntity.cpp @@ -22,7 +22,7 @@ cFurnaceEntity::cFurnaceEntity(int a_X, int a_Y, int a_Z, cWorld * a_World) - : cBlockEntity( E_BLOCK_FURNACE, a_X, a_Y, a_Z, a_World ) + : cBlockEntity( E_BLOCK_FURNACE, a_X, a_Y, a_Z, a_World ) , m_Items( new cItem[3] ) , m_CookingItem( 0 ) , m_CookTime( 0 ) @@ -30,6 +30,7 @@ cFurnaceEntity::cFurnaceEntity(int a_X, int a_Y, int a_Z, cWorld * a_World) , m_BurnTime( 0 ) , m_TimeBurned( 0 ) { + SetBlockEntity(this); // cBlockEntityWindowOwner } @@ -83,7 +84,6 @@ void cFurnaceEntity::UsedBy( cPlayer * a_Player ) cWindow* Window = new cFurnaceWindow( this ); Window->SetSlots( m_Items, 3 ); Window->SetWindowTitle("UberFurnace"); - Window->GetOwner()->SetEntity(this); OpenWindow( Window ); } if( GetWindow() ) -- cgit v1.2.3