diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-08-31 17:04:12 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-08-31 17:04:12 +0300 |
commit | ad795c9f0c309d6d50b5679026690b055afe4a7c (patch) | |
tree | 0070cc19b3bfdf811a9c11ba83a57ce925e67953 /src/inventory.cpp | |
parent | d6d479f94c83a765ab30e0d3d62207dca2e4db0c (diff) | |
parent | 6415528f968f950cb6b4d6139e336f60a0260515 (diff) | |
download | minetest-ad795c9f0c309d6d50b5679026690b055afe4a7c.tar.gz minetest-ad795c9f0c309d6d50b5679026690b055afe4a7c.tar.bz2 minetest-ad795c9f0c309d6d50b5679026690b055afe4a7c.zip |
Merge remote-tracking branch 'queatz/furnace-fix'
Diffstat (limited to 'src/inventory.cpp')
-rw-r--r-- | src/inventory.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/inventory.cpp b/src/inventory.cpp index 62aedb536..116ceeb6d 100644 --- a/src/inventory.cpp +++ b/src/inventory.cpp @@ -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; |