foxygit / doom Log in
commit 34f29737110c5c6063d36a66a05a10ceb68b36c4
Author:     Turo Lamminen <turol@iki.fi>
AuthorDate: Tue Jun 2 18:24:45 2020 +0300
Commit:     Turo Lamminen <turol@iki.fi>
CommitDate: Tue Jun 2 18:25:13 2020 +0300

    hexen: Reconstruct textBuffer from SlotText and slotptr

    Silences a GCC 10 warning
---
 src/hexen/mn_menu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/hexen/mn_menu.c b/src/hexen/mn_menu.c
index dea58b0c..cd5e404f 100644
--- a/src/hexen/mn_menu.c
+++ b/src/hexen/mn_menu.c
@@ -1660,7 +1660,7 @@ boolean MN_Responder(event_t * event)
             {
                 *textBuffer = 0;
                 slotptr--;
-                textBuffer--;
+                textBuffer = &SlotText[currentSlot][slotptr];
                 *textBuffer = ASCII_CURSOR;
             }
             return (true);