summaryrefslogtreecommitdiffstats
path: root/src/state.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/state.cc')
-rw-r--r--src/state.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/state.cc b/src/state.cc
index 00192b0..06adf8b 100644
--- a/src/state.cc
+++ b/src/state.cc
@@ -29,7 +29,7 @@ State::State() : build_log_(NULL) {
void State::AddRule(const Rule* rule) {
assert(LookupRule(rule->name_) == NULL);
- rules_[rule->name_] = rule;
+ rules_[rule->name()] = rule;
}
const Rule* State::LookupRule(const string& rule_name) {