mirror of
https://github.com/minetest/minetest.git
synced 2024-12-23 22:52:25 +01:00
A small robustness addition to ItemStack
This commit is contained in:
parent
b760e2ba23
commit
247e8b6e5d
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user