- fixed character counting in TypeOn HUD message.

This commit is contained in:
Christoph Oelckers 2019-03-10 18:54:57 +01:00
parent ec476877ac
commit 90c47e7497
2 changed files with 3 additions and 3 deletions

View file

@ -741,7 +741,7 @@ void DHUDMessageTypeOnFadeOut::Serialize(FSerializer &arc)
bool DHUDMessageTypeOnFadeOut::Tick ()
{
if (LineLen > 0 && !Super::Tick ())
if (!Super::Tick ())
{
if (State == 3)
{

View file

@ -393,8 +393,8 @@ size_t FString::CharacterCount() const
int FString::GetNextCharacter(int &position) const
{
const uint8_t *cp = (const uint8_t*)Chars;
const uint8_t *cpread = cp + position;
const uint8_t *cp = (const uint8_t*)Chars + position;
const uint8_t *cpread = cp;
int chr = GetCharFromString(cpread);
position += int(cpread - cp);
return chr;