diff options
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/windows/inventorywindow.cpp | 6 | ||||
-rw-r--r-- | src/gui/windows/ministatuswindow.cpp | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/gui/windows/inventorywindow.cpp b/src/gui/windows/inventorywindow.cpp index 3253a8e83..41d34df13 100644 --- a/src/gui/windows/inventorywindow.cpp +++ b/src/gui/windows/inventorywindow.cpp @@ -389,7 +389,7 @@ InventoryWindow::InventoryWindow(Inventory *const inventory) : Layout &layout = getLayout(); layout.setRowHeight(2, LayoutType::SET); - mInventory->addInventoyListener(this); + mInventory->addInventoryListener(this); invInstances.push_back(this); @@ -425,7 +425,7 @@ InventoryWindow::~InventoryWindow() { invInstances.remove(this); if (mInventory != nullptr) - mInventory->removeInventoyListener(this); + mInventory->removeInventoryListener(this); if (!invInstances.empty()) invInstances.front()->updateDropButton(); @@ -1117,7 +1117,7 @@ void InventoryWindow::unsetInventory() { if (mInventory != nullptr) { - mInventory->removeInventoyListener(this); + mInventory->removeInventoryListener(this); if (mItems != nullptr) mItems->unsetInventory(); } diff --git a/src/gui/windows/ministatuswindow.cpp b/src/gui/windows/ministatuswindow.cpp index 1621055ab..4c2b2d376 100644 --- a/src/gui/windows/ministatuswindow.cpp +++ b/src/gui/windows/ministatuswindow.cpp @@ -154,7 +154,7 @@ MiniStatusWindow::MiniStatusWindow() : addMouseListener(this); Inventory *const inv = PlayerInfo::getInventory(); if (inv != nullptr) - inv->addInventoyListener(this); + inv->addInventoryListener(this); StatusWindow::updateMoneyBar(mMoneyBar); StatusWindow::updateArrowsBar(mArrowsBar); @@ -169,7 +169,7 @@ MiniStatusWindow::~MiniStatusWindow() Inventory *const inv = PlayerInfo::getInventory(); if (inv != nullptr) - inv->removeInventoyListener(this); + inv->removeInventoryListener(this); FOR_EACH (ProgressBarVectorCIter, it, mBars) { |