summaryrefslogtreecommitdiff
path: root/src/inventory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/inventory.cpp')
-rw-r--r--src/inventory.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/inventory.cpp b/src/inventory.cpp
index a6038c85..7684b54c 100644
--- a/src/inventory.cpp
+++ b/src/inventory.cpp
@@ -19,6 +19,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#include "event.h"
#include "inventory.h"
#include "item.h"
#include "log.h"
@@ -36,7 +37,7 @@ struct SlotUsed : public std::unary_function<Item*, bool>
}
};
-Inventory::Inventory(int type, int size):
+Inventory::Inventory(Type type, int size):
mType(type),
mSize(size == -1 ? Net::getInventoryHandler()->getSize(type) : size),
mUsed(0)