summaryrefslogtreecommitdiff
path: root/src/gui/storagewindow.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/storagewindow.h')
-rw-r--r--src/gui/storagewindow.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gui/storagewindow.h b/src/gui/storagewindow.h
index 452ce735..8c890c27 100644
--- a/src/gui/storagewindow.h
+++ b/src/gui/storagewindow.h
@@ -26,6 +26,9 @@
#include "inventory.h"
+#include "net/inventoryhandler.h"
+#include "net/net.h"
+
#include <guichan/actionlistener.hpp>
#include <guichan/selectionlistener.hpp>
@@ -46,7 +49,8 @@ class StorageWindow : public Window, gcn::ActionListener,
/**
* Constructor.
*/
- StorageWindow(int invSize = (STORAGE_SIZE - 1));
+ StorageWindow(int invSize = Net::getInventoryHandler()
+ ->getStorageSize());
/**
* Destructor.