Bug #1324: Artem's solution

This commit is contained in:
cc9cii 2014-05-18 07:34:13 +10:00
parent f7c89015f9
commit b36bb58e8c

View file

@ -38,6 +38,8 @@ void Script::load(ESMReader &esm)
char* str = &tmp[0];
for (size_t i = 0; i < mVarNames.size(); i++)
{
char *termsym = strchr(str, '\r');
if(termsym) *termsym = '\0';
mVarNames[i] = std::string(str);
str += mVarNames[i].size() + 1;