diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-02-20 20:05:52 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-02-20 20:17:07 -0800 |
commit | 65c905fe84c0e8b7acd6839469d7bb9727f0632b (patch) | |
tree | b9af97e9191b82675713cda3874677ee81b3bc9b /031address.cc | |
parent | 343bc5359b93d4b589544671804f11d42f67d694 (diff) | |
download | mu-65c905fe84c0e8b7acd6839469d7bb9727f0632b.tar.gz |
2678
Start using type names from the type tree rather than the property tree in most places. Hopefully the only occurrences of 'properties.at(0).second' left are ones where we're managing it. Next we can stop writing to it.
Diffstat (limited to '031address.cc')
-rw-r--r-- | 031address.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/031address.cc b/031address.cc index a6341cf7..384293b9 100644 --- a/031address.cc +++ b/031address.cc @@ -106,8 +106,8 @@ void drop_from_type(reagent& r, string expected_type) { raise_error << "can't drop " << expected_type << " from " << to_string(r) << '\n' << end(); return; } - if (r.properties.at(0).second->value != expected_type) { - raise_error << "can't drop " << expected_type << " from " << to_string(r) << '\n' << end(); + if (r.type->name != expected_type) { + raise_error << "can't drop2 " << expected_type << " from " << to_string(r) << '\n' << end(); return; } type_tree* tmp = r.type; |