diff --git a/scripting/erm/ERMInterpreter.cpp b/scripting/erm/ERMInterpreter.cpp index 340bcc80d..2bfc5651d 100644 --- a/scripting/erm/ERMInterpreter.cpp +++ b/scripting/erm/ERMInterpreter.cpp @@ -988,7 +988,7 @@ namespace ERMConverter fmt % name; fmt % params; - boost::apply_visitor(GenericReceiver(out, fmt.str(), (name=="DO")), bo[0]); + bo[0].apply_visitor(GenericReceiver(out, fmt.str(), (name=="DO"))); } else {