shithub: choc

Download patch

ref: 1a581dbc358c2f2c97efa2615a6b29c54bad007b
parent: bcd7cbb3774bbe1fa830461f750c810a1f742c4b
author: Turo Lamminen <turol@iki.fi>
date: Tue Jun 2 14:15:12 EDT 2020

hexen: Separate changing buffer contents and buffer pointer

--- a/src/hexen/mn_menu.c
+++ b/src/hexen/mn_menu.c
@@ -1658,7 +1658,8 @@
         {
             if (slotptr)
             {
-                *textBuffer-- = 0;
+                *textBuffer = 0;
+                textBuffer--;
                 *textBuffer = ASCII_CURSOR;
                 slotptr--;
             }