Fixed a warning when an empty item is being created.
This commit is contained in:
parent
ae2d18daee
commit
f2b5790776
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user