Explorar o código

fix recipie ingredient filter not loaded correctly

Kolja Strohm hai 9 meses
pai
achega
df57d03a8d
Modificáronse 1 ficheiros con 4 adicións e 4 borrados
  1. 4 4
      FactoryCraft/Recipie.cpp

+ 4 - 4
FactoryCraft/Recipie.cpp

@@ -21,8 +21,8 @@ RecipieInput::~RecipieInput()
 
 void RecipieInput::setFilter(ItemFilter* filter)
 {
-    if (filter) filter->release();
-    filter = filter;
+    if (this->filter) this->filter->release();
+    this->filter = filter;
 }
 
 ItemFilter* RecipieInput::zFilter() const
@@ -32,8 +32,8 @@ ItemFilter* RecipieInput::zFilter() const
 
 void RecipieInput::setModifier(ItemModifier* modifier)
 {
-    if (modifier) modifier->release();
-    modifier = modifier;
+    if (this->modifier) this->modifier->release();
+    this->modifier = modifier;
 }
 
 ItemModifier* RecipieInput::zModifier() const