December 2014 files
This commit is contained in:
@@ -19,6 +19,10 @@ int ArmorSlot::getMaxStackSize()
|
||||
|
||||
bool ArmorSlot::mayPlace(shared_ptr<ItemInstance> item)
|
||||
{
|
||||
if (item == NULL)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if ( dynamic_cast<ArmorItem *>( item->getItem() ) != NULL)
|
||||
{
|
||||
return dynamic_cast<ArmorItem *>( item->getItem() )->slot == slotNum;
|
||||
|
||||
Reference in New Issue
Block a user