mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 07:12:02 +00:00
- fixed character to int conversion for UTF8-characters.
This commit is contained in:
parent
8d9b4f5a17
commit
ea3d26aafd
1 changed files with 1 additions and 1 deletions
|
@ -327,7 +327,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