forked from mirror/openmw-tes3mp
Bug #1324: Artem's solution
This commit is contained in:
parent
f7c89015f9
commit
b36bb58e8c
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue