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/cCraftingWindow.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'source/cCraftingWindow.cpp') diff --git a/source/cCraftingWindow.cpp b/source/cCraftingWindow.cpp index 9e6b565c6..03102123b 100644 --- a/source/cCraftingWindow.cpp +++ b/source/cCraftingWindow.cpp @@ -19,12 +19,9 @@ cCraftingWindow::cCraftingWindow( cWindowOwner* a_Owner, bool a_bInventoryVisible ) - : cWindow( a_Owner, a_bInventoryVisible ) + : cWindow(a_Owner, a_bInventoryVisible, cWindow::Workbench, 1) { - SetWindowID( 1 ); - SetWindowType( cWindow::Workbench ); // Workbench - - cItem* Slots = new cItem[10]; + cItem * Slots = new cItem[10]; SetSlots( Slots, 10 ); } -- cgit v1.2.3