From d20744c0ff83572dc209389df900826b7d088546 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 23 Nov 2014 16:45:46 +0300 Subject: Add support for additional slots in net code. Now projectile slot depend on server. --- src/gui/windows/statuswindow.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/gui/windows/statuswindow.cpp') diff --git a/src/gui/windows/statuswindow.cpp b/src/gui/windows/statuswindow.cpp index 9d979f27f..8803654c8 100644 --- a/src/gui/windows/statuswindow.cpp +++ b/src/gui/windows/statuswindow.cpp @@ -50,8 +50,9 @@ #include "gui/widgets/vertcontainer.h" #include "gui/widgets/windowcontainer.h" -#include "net/playerhandler.h" #include "net/gamehandler.h" +#include "net/inventoryhandler.h" +#include "net/playerhandler.h" #include "utils/delete2.h" #include "utils/gettext.h" @@ -585,7 +586,7 @@ void StatusWindow::updateArrowsBar(ProgressBar *const bar) return; const Item *const item = equipmentWindow->getEquipment( - Equipment::EQUIP_PROJECTILE_SLOT); + inventoryHandler->getProjectileSlot()); if (item && item->getQuantity() > 0) bar->setText(toString(item->getQuantity())); -- cgit v1.2.3-70-g09d2