summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Lyons Harkness <me@bearbin.net>2017-12-21 17:01:24 +0100
committerAlexander Lyons Harkness <me@bearbin.net>2017-12-21 17:01:24 +0100
commita9c8ad9ce2b2655304fe8224365c4670a378a771 (patch)
tree4e6f7326d2d7863b97602dd62d27aecd24bcecdf
parentNetworkLookup: Added "virtual" keyword to overridden dtor. (#4100) (diff)
downloadcuberite-a9c8ad9ce2b2655304fe8224365c4670a378a771.tar
cuberite-a9c8ad9ce2b2655304fe8224365c4670a378a771.tar.gz
cuberite-a9c8ad9ce2b2655304fe8224365c4670a378a771.tar.bz2
cuberite-a9c8ad9ce2b2655304fe8224365c4670a378a771.tar.lz
cuberite-a9c8ad9ce2b2655304fe8224365c4670a378a771.tar.xz
cuberite-a9c8ad9ce2b2655304fe8224365c4670a378a771.tar.zst
cuberite-a9c8ad9ce2b2655304fe8224365c4670a378a771.zip
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
{