File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -922,7 +922,7 @@ class CCraftDefManager: public IWritableCraftDefManager
922
922
923
923
// Get output, then decrement input (if requested)
924
924
output = out;
925
-
925
+
926
926
if (decrementInput)
927
927
def->decrementInput (input, output_replacement, gamedef);
928
928
/* errorstream << "Check RETURNS TRUE" << std::endl;*/
@@ -1099,9 +1099,10 @@ class CCraftDefManager: public IWritableCraftDefManager
1099
1099
unhashed.clear ();
1100
1100
}
1101
1101
private:
1102
- // TODO: change both maps to unordered_map when c++11 can be used
1103
- std::vector<std::map<u64, std::vector<CraftDefinition*> > > m_craft_defs;
1104
- std::map<std::string, std::vector<CraftDefinition*> > m_output_craft_definitions;
1102
+ std::vector<std::unordered_map<u64, std::vector<CraftDefinition*> > >
1103
+ m_craft_defs;
1104
+ std::unordered_map<std::string, std::vector<CraftDefinition*> >
1105
+ m_output_craft_definitions;
1105
1106
};
1106
1107
1107
1108
IWritableCraftDefManager* createCraftDefManager ()
You can’t perform that action at this time.
0 commit comments