summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngelo Castellani <udp.castellani@gmail.com>2011-05-19 19:29:58 -0400
committerStefan Dombrowski <stefan@uni-bonn.de>2011-05-20 17:34:21 +0200
commit5dbb4826a88e255fe565fc837fe91bf305bd28d0 (patch)
tree9cb4c004e257bcf7cb3e1146e387e108711e6be0
parentf971e8903ae6e7f01adb7b2f252c6482fa258ebb (diff)
downloadmana-client-5dbb4826a88e255fe565fc837fe91bf305bd28d0.tar.gz
mana-client-5dbb4826a88e255fe565fc837fe91bf305bd28d0.tar.bz2
mana-client-5dbb4826a88e255fe565fc837fe91bf305bd28d0.tar.xz
mana-client-5dbb4826a88e255fe565fc837fe91bf305bd28d0.zip
Fixed 'InventoyListener' typo
-rw-r--r--src/gui/inventorywindow.cpp4
-rw-r--r--src/inventory.cpp4
-rw-r--r--src/inventory.h4
3 files changed, 6 insertions, 6 deletions
diff --git a/src/gui/inventorywindow.cpp b/src/gui/inventorywindow.cpp
index 4ebcce8b..6a897700 100644
--- a/src/gui/inventorywindow.cpp
+++ b/src/gui/inventorywindow.cpp
@@ -143,7 +143,7 @@ InventoryWindow::InventoryWindow(Inventory *inventory):
Layout &layout = getLayout();
layout.setRowHeight(2, Layout::AUTO_SET);
- mInventory->addInventoyListener(this);
+ mInventory->addInventoryListener(this);
instances.push_back(this);
@@ -160,7 +160,7 @@ InventoryWindow::InventoryWindow(Inventory *inventory):
InventoryWindow::~InventoryWindow()
{
instances.remove(this);
- mInventory->removeInventoyListener(this);
+ mInventory->removeInventoryListener(this);
if (!isMainInventory())
PlayerInfo::setStorageCount(PlayerInfo::getStorageCount() - 1);
diff --git a/src/inventory.cpp b/src/inventory.cpp
index 3c556f01..25c1ebf7 100644
--- a/src/inventory.cpp
+++ b/src/inventory.cpp
@@ -151,12 +151,12 @@ int Inventory::getLastUsedSlot() const
return -1;
}
-void Inventory::addInventoyListener(InventoryListener* listener)
+void Inventory::addInventoryListener(InventoryListener* listener)
{
mInventoryListeners.push_back(listener);
}
-void Inventory::removeInventoyListener(InventoryListener* listener)
+void Inventory::removeInventoryListener(InventoryListener* listener)
{
mInventoryListeners.remove(listener);
}
diff --git a/src/inventory.h b/src/inventory.h
index 5a1d2c0a..d76d6afd 100644
--- a/src/inventory.h
+++ b/src/inventory.h
@@ -124,9 +124,9 @@ class Inventory
*/
int getLastUsedSlot() const;
- void addInventoyListener(InventoryListener* listener);
+ void addInventoryListener(InventoryListener* listener);
- void removeInventoyListener(InventoryListener* listener);
+ void removeInventoryListener(InventoryListener* listener);
int getType() const
{ return mType; }