commit bcd7cbb3774bbe1fa830461f750c810a1f742c4b
Author: Turo Lamminen <turol@iki.fi>
AuthorDate: Tue Jun 2 18:10:08 2020 +0300
Commit: Turo Lamminen <turol@iki.fi>
CommitDate: Tue Jun 2 18:25:13 2020 +0300
heretic: Reconstruct textBuffer from SlotText and slotptr
Silences a GCC 10 warning
---
src/heretic/mn_menu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/heretic/mn_menu.c b/src/heretic/mn_menu.c
index 1b461cfe..3c91fe39 100644
--- a/src/heretic/mn_menu.c
+++ b/src/heretic/mn_menu.c
@@ -1527,7 +1527,7 @@ boolean MN_Responder(event_t * event)
{
*textBuffer = 0;
slotptr--;
- textBuffer--;
+ textBuffer = &SlotText[currentSlot][slotptr];
*textBuffer = ASCII_CURSOR;
}
return (true);