summaryrefslogtreecommitdiff
path: root/src/interface.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/interface.c')
-rw-r--r--src/interface.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/interface.c b/src/interface.c
index 6221848..6382ed0 100644
--- a/src/interface.c
+++ b/src/interface.c
@@ -3867,11 +3867,13 @@ char *console_ui(pixel *vid_buf,char error[255],char console_more) {
//fillrect(vid_buf, -1, -1, XRES, 220, 0, 0, 0, 190);
memcpy(old_buf,vid_buf,(XRES+BARSIZE)*YRES*PIXELSIZE);
fillrect(old_buf, -1, -1, XRES+1, 220, 0, 0, 0, 190);
+
currentcommand2 = malloc(sizeof(command_history));
- memset(currentcommand2, 0, sizeof(command_history));
- currentcommand2->prev_command = last_command2;
- currentcommand2->command = mystrdup(error);
- last_command2 = currentcommand2;
+ memset(currentcommand2, 0, sizeof(command_history));
+ currentcommand2->prev_command = last_command2;
+ currentcommand2->command = mystrdup(error);
+ last_command2 = currentcommand2;
+
SDL_EnableKeyRepeat(SDL_DEFAULT_REPEAT_DELAY, SDL_DEFAULT_REPEAT_INTERVAL);
cc = 0;
while(cc < 80){