mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
If there was no source item in a furnace it would cause a segmentation fault.
This commit is contained in:
parent
4af1f2963c
commit
6415528f96
2 changed files with 3 additions and 1 deletions
|
@ -581,6 +581,8 @@ bool InventoryList::roomForItem(const InventoryItem *item)
|
|||
|
||||
bool InventoryList::roomForCookedItem(const InventoryItem *item)
|
||||
{
|
||||
if(!item)
|
||||
return false;
|
||||
const InventoryItem *cook = item->createCookResult();
|
||||
if(!cook)
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue