summaryrefslogtreecommitdiff
path: root/src/console.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/console.cpp')
-rw-r--r--src/console.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/console.cpp b/src/console.cpp
index db2902690..5e80134a4 100644
--- a/src/console.cpp
+++ b/src/console.cpp
@@ -318,7 +318,7 @@ void IConsoleSwitch()
{
switch (_iconsole_mode) {
case ICONSOLE_CLOSED: {
- Window *w = AllocateWindowDesc(&_iconsole_window_desc);
+ Window *w = new Window(&_iconsole_window_desc);
w->height = _screen.height / 3;
w->width = _screen.width;
_iconsole_mode = ICONSOLE_OPENED;