SAGA2: Class initialization fixes. CID 1457913, 1457897

This commit is contained in:
Eugene Sandulenko 2021-07-10 13:30:58 +02:00
parent d368064a18
commit 85c9da6594
No known key found for this signature in database
GPG Key ID: 014D387312D34F08

View File

@ -448,6 +448,7 @@ CPlaqText::CPlaqText(gPanelList &list,
buttonFont = font;
textRect = box;
textPosition = textPos;
oldFont = nullptr;
}
void CPlaqText::enable(bool abled) {
@ -699,16 +700,16 @@ CStatusLine::CStatusLine(gPanelList &list,
int32 /*frameTime*/,
int16 ident,
AppFunc *cmd) :
CPlaqText(list, box, msg, font, textPos, pal, ident, cmd)
{
int i;
CPlaqText(list, box, msg, font, textPos, pal, ident, cmd) {
lineDisplayed = false;
queueHead = queueTail = 0;
for (i = 0; i < ARRAYSIZE(lineQueue); i++)
for (int i = 0; i < ARRAYSIZE(lineQueue); i++) {
lineQueue[i].text = nullptr;
lineQueue[i].frameTime = 0;
}
}
CStatusLine::~CStatusLine(void) {