diff --git a/src/scriptapi.cpp b/src/scriptapi.cpp index f103551..8a4e0b0 100644 --- a/src/scriptapi.cpp +++ b/src/scriptapi.cpp @@ -1496,7 +1496,7 @@ private: { ItemStack *o = checkobject(L, 1); push_stack_item(L, o->m_stack); - if(o->m_stack->getCount() == 1){ + if(o->m_stack->getCount() <= 1){ delete o->m_stack; o->m_stack = NULL; } else {