- fixed: Invalid intermission string references to the string table could cause a crash.

SVN r3301 (trunk)
This commit is contained in:
Christoph Oelckers 2011-10-23 09:46:31 +00:00
parent 307050d38d
commit b5cd69fe4c

View file

@ -291,7 +291,7 @@ void DIntermissionScreenText::Init(FIntermissionAction *desc, bool first)
{
Super::Init(desc, first);
mText = static_cast<FIntermissionActionTextscreen*>(desc)->mText;
if (mText[0] == '$') mText = GStrings[&mText[1]];
if (mText[0] == '$') mText = GStrings(&mText[1]);
mTextSpeed = static_cast<FIntermissionActionTextscreen*>(desc)->mTextSpeed;
mTextX = static_cast<FIntermissionActionTextscreen*>(desc)->mTextX;
if (mTextX < 0) mTextX =gameinfo.TextScreenX;