SAGA2: Fix ModalWindow instantiation. CID 1458038

This commit is contained in:
Eugene Sandulenko
2021-07-11 15:07:02 +02:00
parent b2878dea3b
commit 49d7d7178d
+6 -4
View File
@@ -61,10 +61,12 @@ extern void updateWindowSection(const Rect16 &r);
ModalWindow *ModalWindow::current = NULL;
ModalWindow::ModalWindow(const Rect16 &r,
uint16 ident,
AppFunc *cmd)
: DecoratedWindow(r, ident, "DialogWindow", cmd) {
ModalWindow::ModalWindow(const Rect16 &r, uint16 ident, AppFunc *cmd)
: DecoratedWindow(r, ident, "DialogWindow", cmd) {
prevModeStackCtr = 0;
for (int i = 0; i < Max_Modes; i++)
prevModeStackPtr[i] = 0;
}
ModalWindow::~ModalWindow(void) {