mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 23:02:08 +00:00
- fixed: Invalid intermission string references to the string table could cause a crash.
SVN r3301 (trunk)
This commit is contained in:
parent
307050d38d
commit
b5cd69fe4c
1 changed files with 1 additions and 1 deletions
|
@ -291,7 +291,7 @@ void DIntermissionScreenText::Init(FIntermissionAction *desc, bool first)
|
||||||
{
|
{
|
||||||
Super::Init(desc, first);
|
Super::Init(desc, first);
|
||||||
mText = static_cast<FIntermissionActionTextscreen*>(desc)->mText;
|
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;
|
mTextSpeed = static_cast<FIntermissionActionTextscreen*>(desc)->mTextSpeed;
|
||||||
mTextX = static_cast<FIntermissionActionTextscreen*>(desc)->mTextX;
|
mTextX = static_cast<FIntermissionActionTextscreen*>(desc)->mTextX;
|
||||||
if (mTextX < 0) mTextX =gameinfo.TextScreenX;
|
if (mTextX < 0) mTextX =gameinfo.TextScreenX;
|
||||||
|
|
Loading…
Reference in a new issue