summaryrefslogtreecommitdiffstats
path: root/src/FurnaceRecipe.cpp
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-12-17 19:14:01 +0100
committerHowaner <franzi.moos@googlemail.com>2014-12-17 19:14:01 +0100
commit8277e1ec4e3e761527bc850ac371f3b899d023bf (patch)
tree5a5cb6bb1609e24bdd32ddbfb9354e158b51f161 /src/FurnaceRecipe.cpp
parentMerge branch 'master' into Inventory (diff)
downloadcuberite-8277e1ec4e3e761527bc850ac371f3b899d023bf.tar
cuberite-8277e1ec4e3e761527bc850ac371f3b899d023bf.tar.gz
cuberite-8277e1ec4e3e761527bc850ac371f3b899d023bf.tar.bz2
cuberite-8277e1ec4e3e761527bc850ac371f3b899d023bf.tar.lz
cuberite-8277e1ec4e3e761527bc850ac371f3b899d023bf.tar.xz
cuberite-8277e1ec4e3e761527bc850ac371f3b899d023bf.tar.zst
cuberite-8277e1ec4e3e761527bc850ac371f3b899d023bf.zip
Diffstat (limited to '')
-rw-r--r--src/FurnaceRecipe.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/FurnaceRecipe.cpp b/src/FurnaceRecipe.cpp
index fe46ed770..ea952a852 100644
--- a/src/FurnaceRecipe.cpp
+++ b/src/FurnaceRecipe.cpp
@@ -293,9 +293,8 @@ const cFurnaceRecipe::cRecipe * cFurnaceRecipe::GetRecipeFrom(const cItem & a_In
bool cFurnaceRecipe::IsFuel(const cItem & a_Item) const
{
- for (FuelList::const_iterator itr = m_pState->Fuel.begin(); itr != m_pState->Fuel.end(); ++itr)
+ for (auto & Fuel : m_pState->Fuel)
{
- const cFuel & Fuel = *itr;
if ((Fuel.In->m_ItemType == a_Item.m_ItemType) && (Fuel.In->m_ItemCount <= a_Item.m_ItemCount))
{
return true;