From e8366993ce3f1cc0c2c6cde1d133773d1f23c474 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Mon, 6 Aug 2012 20:10:16 +0000 Subject: A bit of cleanup and documentation around the UI window handling git-svn-id: http://mc-server.googlecode.com/svn/trunk@716 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cInventory.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'source/cInventory.cpp') diff --git a/source/cInventory.cpp b/source/cInventory.cpp index 8854ad29a..8a0c06472 100644 --- a/source/cInventory.cpp +++ b/source/cInventory.cpp @@ -48,10 +48,9 @@ cInventory::cInventory(cPlayer* a_Owner) if( !GetWindow() ) { - cWindow* Window = new cWindow( this, false ); - Window->SetSlots( m_Slots, c_NumSlots ); - Window->SetWindowID( 0 ); - OpenWindow( Window ); + cWindow* Window = new cWindow( this, false, cWindow::Inventory, 0); + Window->SetSlots(m_Slots, c_NumSlots); + OpenWindow(Window); } } -- cgit v1.2.3