mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-28 01:56:24 +00:00
Remove warnings, ref #177
This commit is contained in:
parent
985bb2d985
commit
09ed249fe9
1 changed files with 1 additions and 2 deletions
|
@ -2798,7 +2798,6 @@ void updateInventoryFromStream (NLMISC::CBitMemStream &impulse, const CInventory
|
||||||
// Apply property to database
|
// Apply property to database
|
||||||
CCDBNodeBranch *slotNode = safe_cast<CCDBNodeBranch*>(inventoryNode->getNode( (uint16)itemSlot.getSlotIndex() ));
|
CCDBNodeBranch *slotNode = safe_cast<CCDBNodeBranch*>(inventoryNode->getNode( (uint16)itemSlot.getSlotIndex() ));
|
||||||
CCDBNodeLeaf *leafNode = type_cast<CCDBNodeLeaf*>(slotNode->find( string(INVENTORIES::CItemSlot::ItemPropStr[itemSlot.getOneProp().ItemPropId]) ));
|
CCDBNodeLeaf *leafNode = type_cast<CCDBNodeLeaf*>(slotNode->find( string(INVENTORIES::CItemSlot::ItemPropStr[itemSlot.getOneProp().ItemPropId]) ));
|
||||||
if (!leafNode) nlwarning("BUG: Inventory slot property missing in database (iuOneProp) (%s, %i, %s)", slotNode->getFullName().c_str(), (sint)itemSlot.getOneProp().ItemPropId, INVENTORIES::CItemSlot::ItemPropStr[itemSlot.getOneProp().ItemPropId]);
|
|
||||||
SKIP_IF( !leafNode, "Inventory slot property missing in database", continue );
|
SKIP_IF( !leafNode, "Inventory slot property missing in database", continue );
|
||||||
leafNode->setPropCheckGC( serverTick, (sint64)itemSlot.getOneProp().ItemPropValue );
|
leafNode->setPropCheckGC( serverTick, (sint64)itemSlot.getOneProp().ItemPropValue );
|
||||||
|
|
||||||
|
@ -2816,8 +2815,8 @@ void updateInventoryFromStream (NLMISC::CBitMemStream &impulse, const CInventory
|
||||||
// Instead of clearing all leaves (by index), we must find and clear only the
|
// Instead of clearing all leaves (by index), we must find and clear only the
|
||||||
// properties in TItemPropId, because the actual database leaves may have
|
// properties in TItemPropId, because the actual database leaves may have
|
||||||
// less properties, and because we must not clear the leaf INFO_VERSION.
|
// less properties, and because we must not clear the leaf INFO_VERSION.
|
||||||
|
// NOTE: For example, only player BAG inventory has WORNED leaf.
|
||||||
CCDBNodeLeaf *leafNode = type_cast<CCDBNodeLeaf*>(slotNode->find( string(INVENTORIES::CItemSlot::ItemPropStr[i]) ));
|
CCDBNodeLeaf *leafNode = type_cast<CCDBNodeLeaf*>(slotNode->find( string(INVENTORIES::CItemSlot::ItemPropStr[i]) ));
|
||||||
if (!leafNode) nlwarning("BUG: Inventory slot property missing in database (iuReset) (%s, %i, %s)", slotNode->getFullName().c_str(), (sint)i, INVENTORIES::CItemSlot::ItemPropStr[i]);
|
|
||||||
SKIP_IF( !leafNode, "Inventory slot property missing in database", continue );
|
SKIP_IF( !leafNode, "Inventory slot property missing in database", continue );
|
||||||
leafNode->setPropCheckGC( serverTick, 0 );
|
leafNode->setPropCheckGC( serverTick, 0 );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue