summaryrefslogtreecommitdiffstats
path: root/src/Inventory.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/Inventory.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Inventory.cpp b/src/Inventory.cpp
index c7b1e4f28..9cfc17452 100644
--- a/src/Inventory.cpp
+++ b/src/Inventory.cpp
@@ -793,10 +793,9 @@ void cInventory::OnSlotChanged(cItemGrid * a_ItemGrid, int a_SlotNum)
{
Base = invHotbarOffset;
}
- else if (a_ItemGrid = &m_ShieldSlots)
+ else if (a_ItemGrid == &m_ShieldSlots)
{
Base = invShieldOffset;
-
}
else
{