diff options
author | Fedja Beader <fedja@protonmail.ch> | 2024-04-27 16:36:36 +0000 |
---|---|---|
committer | Fedja Beader <fedja@protonmail.ch> | 2024-04-27 16:36:36 +0000 |
commit | c831c69d9f50bf418295834ae83e9eb400dfc6b7 (patch) | |
tree | cda966e5de3ef56ffcc832c02f63170e48d1b3cb /src/net/eathena/inventoryhandler.cpp | |
parent | 40b605c41542baf9b10a1a2b03af10e3baaa362f (diff) | |
download | manaplus-c831c69d9f50bf418295834ae83e9eb400dfc6b7.tar.gz manaplus-c831c69d9f50bf418295834ae83e9eb400dfc6b7.tar.bz2 manaplus-c831c69d9f50bf418295834ae83e9eb400dfc6b7.tar.xz manaplus-c831c69d9f50bf418295834ae83e9eb400dfc6b7.zip |
Fix "Show items" (equipment display on other players)
See #73 for discussion
Squashed with:
* Fix mana pearl showing in arrows slot in Classic
* Fix off-by-one. Was causing Old Towel to render in torso slot in ML.
****
mana/plus!78
Diffstat (limited to 'src/net/eathena/inventoryhandler.cpp')
-rw-r--r-- | src/net/eathena/inventoryhandler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/eathena/inventoryhandler.cpp b/src/net/eathena/inventoryhandler.cpp index 3911c63fa..19197c851 100644 --- a/src/net/eathena/inventoryhandler.cpp +++ b/src/net/eathena/inventoryhandler.cpp @@ -572,7 +572,7 @@ void InventoryHandler::selectEgg(const Item *const item) const int InventoryHandler::convertFromServerSlot(const int serverSlot) const { - if (serverSlot < 0 || serverSlot >= 17) + if (serverSlot < 0 || serverSlot > 17) return 0; return CAST_S32(EQUIP_CONVERT[serverSlot]); |