about summary refs log tree commit diff stats
path: root/cpp/010vm
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-03-25 19:06:32 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-03-25 19:47:17 -0700
commite853b94e93f0a525c857eff97b5ed3d7e9fecdac (patch)
treea91449a1497a7cbb3433cb41d8d10c966a0c809e /cpp/010vm
parent6de26237ff5c596084caea6e0a9158c22692f566 (diff)
downloadmu-e853b94e93f0a525c857eff97b5ed3d7e9fecdac.tar.gz
971
Diffstat (limited to 'cpp/010vm')
-rw-r--r--cpp/010vm6
1 files changed, 2 insertions, 4 deletions
diff --git a/cpp/010vm b/cpp/010vm
index c7de25b0..1d45f157 100644
--- a/cpp/010vm
+++ b/cpp/010vm
@@ -44,7 +44,7 @@ struct reagent {
   bool initialized;
   vector<type_number> types;
   reagent(string s);
-  reagent(type_number t);
+  reagent();
   void set_value(int v) { value = v; initialized = true; }
   string to_string();
 };
@@ -164,9 +164,7 @@ void setup_recipes() {
       types.push_back(Type_number[properties[0].second[i]]);
     }
   }
-  reagent::reagent(type_number t) :value(0), initialized(false) {
-    types.push_back(t);
-  }
+  reagent::reagent() :value(0), initialized(false) {}
   string reagent::to_string() {
     ostringstream out;
     out << "{name: \"" << name << "\", value: " << value << ", type: ";