Fixed commandline CBot interpreter not initializing the library properly

dev-time-step
krzys-h 2015-12-26 19:57:12 +01:00
parent ef91fb8e9d
commit d00720a2f2
1 changed files with 4 additions and 2 deletions

View File

@ -38,11 +38,13 @@ int main(int argc, char* argv[])
code += "\n";
}
// Initialize the CBot engine, add standard library functions
CBotProgram::Init();
CBotProgram::AddFunction("message", rMessage, cMessage);
// Error message strings are stored on Colobot side (meh!) so let's initialize that
InitializeRestext();
// Initialize the CBot engine, add standard library functions
CBotProgram::AddFunction("message", rMessage, cMessage);
// Compile the program
std::vector<std::string> externFunctions;