mirror of
https://github.com/luanti-org/luanti.git
synced 2026-01-13 04:35:28 +01:00
If there was no source item in a furnace it would cause a segmentation fault.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user