Fixed regex in checking object.factory parameter

master
krzys-h 2015-08-17 19:30:27 +02:00
parent 1185bd4c36
commit d5a468df46
1 changed files with 1 additions and 1 deletions

View File

@ -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());
}