summaryrefslogtreecommitdiff
path: root/src/gui/inventorywindow.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/inventorywindow.h')
-rw-r--r--src/gui/inventorywindow.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gui/inventorywindow.h b/src/gui/inventorywindow.h
index fbda5ac7..d7e82bd1 100644
--- a/src/gui/inventorywindow.h
+++ b/src/gui/inventorywindow.h
@@ -26,6 +26,9 @@
#include "inventory.h"
+#include "net/inventoryhandler.h"
+#include "net/net.h"
+
#include <guichan/actionlistener.hpp>
#include <guichan/keylistener.hpp>
#include <guichan/selectionlistener.hpp>
@@ -49,7 +52,8 @@ class InventoryWindow : public Window,
/**
* Constructor.
*/
- InventoryWindow(int invSize = (INVENTORY_SIZE));
+ InventoryWindow(int invSize = Net::getInventoryHandler()
+ ->getInventorySize());
/**
* Destructor.