diff options
Diffstat (limited to 'hscript/script_i.hh')
-rw-r--r-- | hscript/script_i.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hscript/script_i.hh b/hscript/script_i.hh index b223608..abe56ec 100644 --- a/hscript/script_i.hh +++ b/hscript/script_i.hh @@ -257,10 +257,10 @@ struct Script::ScriptPrivate { const ScriptOptions &) { std::unique_ptr<SvcEnable> svc(dynamic_cast<SvcEnable *>(obj)); for(const auto &s : svcs_enable) { - if(s->value() == svc->value()) { + if(s->service() == svc->service()) { if(warn) *warn += 1; output_warning(pos, "svcenable: service already enabled", - s->value()); + s->service()); return true; } } |