Skip to content
Permalink
Browse files

Fix issue #1275 - one more missing check.

  • Loading branch information
RealBadAngel committed Jun 17, 2014
1 parent c0e4551 commit c380563a12d82603255e271af005e042bde0d42d
Showing with 1 addition and 1 deletion.
  1. +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();

0 comments on commit c380563

Please sign in to comment.
You can’t perform that action at this time.