diff options
-rw-r--r-- | mbbsd/talk.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/mbbsd/talk.c b/mbbsd/talk.c index 920035e8..ae889028 100644 --- a/mbbsd/talk.c +++ b/mbbsd/talk.c @@ -3268,22 +3268,22 @@ TalkToAngel(){ void CallAngel(){ - static int entered = 0; - void *screen0; - int x, y; + static int entered = 0; + screen_backup_t old_screen; + int x, y; if (!HasUserPerm(PERM_LOGINOK) || entered) return; entered = 1; getyx(&y, &x); - screen0=malloc(screen_backupsize(t_lines, big_picture)); - screen_backup(t_lines, big_picture, screen0); + old_screen.raw_memory = malloc(screen_backupsize(t_lines, big_picture)); + screen_backup(t_lines, big_picture, &old_screen); TalkToAngel(); - screen_restore(t_lines, big_picture, screen0); - free(screen0); + screen_restore(t_lines, big_picture, &old_screen); + free(old_screen.raw_memory); move(y, x); redoscr(); |