mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-30 22:15:32 +00:00
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];
|
char* str = &tmp[0];
|
||||||
for (size_t i = 0; i < mVarNames.size(); i++)
|
for (size_t i = 0; i < mVarNames.size(); i++)
|
||||||
{
|
{
|
||||||
|
char *termsym = strchr(str, '\r');
|
||||||
|
if(termsym) *termsym = '\0';
|
||||||
mVarNames[i] = std::string(str);
|
mVarNames[i] = std::string(str);
|
||||||
str += mVarNames[i].size() + 1;
|
str += mVarNames[i].size() + 1;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue