1
0

Fixed a warning when an empty item is being created.

This commit is contained in:
madmaxoft 2014-04-30 17:36:51 +02:00
parent ae2d18daee
commit f2b5790776

View File

@ -64,7 +64,7 @@ public:
{ {
if (!IsValidItem(m_ItemType)) if (!IsValidItem(m_ItemType))
{ {
if (m_ItemType != E_BLOCK_AIR) if ((m_ItemType != E_BLOCK_AIR) && (m_ItemType != E_ITEM_EMPTY))
{ {
LOGWARNING("%s: creating an invalid item type (%d), resetting to empty.", __FUNCTION__, a_ItemType); LOGWARNING("%s: creating an invalid item type (%d), resetting to empty.", __FUNCTION__, a_ItemType);
} }