mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 00:25:19 +02: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