A small robustness addition to ItemStack

master
Perttu Ahola 2011-12-06 15:32:41 +02:00
parent b760e2ba23
commit 247e8b6e5d
1 changed files with 1 additions and 1 deletions

View File

@ -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 {