1
0
Fork 0
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:
JacobF 2011-08-30 11:38:53 -04:00
parent 4af1f2963c
commit 6415528f96
2 changed files with 3 additions and 1 deletions

View file

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