mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-01-18 22:51:39 +00:00
- fixed character to int conversion for UTF8-characters.
This commit is contained in:
parent
e9daf31b23
commit
798cebf891
1 changed files with 1 additions and 1 deletions
|
@ -335,7 +335,7 @@ static FxExpression *StringConstToChar(FxExpression *basex)
|
|||
int c = utf8_decode(str.GetChars(), &size);
|
||||
if (c >= 0 && size_t(size) == str.Len())
|
||||
{
|
||||
return new FxConstant(str[0], basex->ScriptPosition);
|
||||
return new FxConstant(c, basex->ScriptPosition);
|
||||
}
|
||||
}
|
||||
return nullptr;
|
||||
|
|
Loading…
Reference in a new issue