Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
with
1 addition
and
1 deletion.
-
+1
−1
src/serverobject.cpp
|
@@ -78,7 +78,7 @@ ItemStack ServerActiveObject::getWieldedItem() const |
|
|
if(inv) |
|
|
{ |
|
|
const InventoryList *list = inv->getList(getWieldList()); |
|
|
if(list) |
|
|
if(list && (getWieldIndex() < (s32)list->getSize())) |
|
|
return list->getItem(getWieldIndex()); |
|
|
} |
|
|
return ItemStack(); |
|
|