Skip to content

Commit

Permalink
Merge pull request #1288 from turol/gcc10-warning
Browse files Browse the repository at this point in the history
Fix GCC 10 warning
  • Loading branch information
turol committed Jun 3, 2020
2 parents c0a6b6b + 34f2973 commit 5bf73c4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/heretic/mn_menu.c
Expand Up @@ -1525,9 +1525,10 @@ boolean MN_Responder(event_t * event)
{
if (slotptr)
{
*textBuffer-- = 0;
*textBuffer = ASCII_CURSOR;
*textBuffer = 0;
slotptr--;
textBuffer = &SlotText[currentSlot][slotptr];
*textBuffer = ASCII_CURSOR;
}
return (true);
}
Expand Down
5 changes: 3 additions & 2 deletions src/hexen/mn_menu.c
Expand Up @@ -1658,9 +1658,10 @@ boolean MN_Responder(event_t * event)
{
if (slotptr)
{
*textBuffer-- = 0;
*textBuffer = ASCII_CURSOR;
*textBuffer = 0;
slotptr--;
textBuffer = &SlotText[currentSlot][slotptr];
*textBuffer = ASCII_CURSOR;
}
return (true);
}
Expand Down

0 comments on commit 5bf73c4

Please sign in to comment.