Fixed regex in checking object.factory parameter
parent
1185bd4c36
commit
d5a468df46
|
@ -409,7 +409,7 @@ bool CAutoFactory::EventProcess(const Event &event)
|
|||
std::string code = "extern void object::Start_"+m_program+"()\n{\n\t\n\t//Automatically generated by object.factory()\n\t"+m_program+"();\n\t\n}\n";
|
||||
program->script->SendScript(code.c_str());
|
||||
}
|
||||
else if (boost::regex_search(m_program, boost::regex(".txt$"))) // File name (with .txt extension)?
|
||||
else if (boost::regex_search(m_program, boost::regex("\\.txt$"))) // File name (with .txt extension)?
|
||||
{
|
||||
program->script->ReadScript(m_program.c_str());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue