From 4ccea443acfdfb37c7bab1934a6b3a1e643186fc Mon Sep 17 00:00:00 2001 From: pionere Date: Wed, 11 Sep 2024 08:10:00 +0200 Subject: [PATCH] do not reset infostr - no need to reset infostr, it is supposed to work like tempstr --- Source/control.cpp | 3 ++- Source/controls/plrctrls.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Source/control.cpp b/Source/control.cpp index 017c2f375e5..8ccf1d094fe 100644 --- a/Source/control.cpp +++ b/Source/control.cpp @@ -945,7 +945,8 @@ void InitControlPan() pSTextSlidCels = CelLoadImage("Data\\TextSlid.CEL", SMALL_SCROLL_WIDTH); assert(pDurIconCels == NULL); pDurIconCels = CelLoadImage("Items\\DurIcons.CEL", DURICON_WIDTH); - infostr[0] = '\0'; + // infostr[0] = '\0'; + // tempstr[0] = '\0'; gbRedrawFlags |= REDRAW_HP_FLASK | REDRAW_MANA_FLASK | REDRAW_SPEED_BAR; gbLvlUp = false; gbSkillListFlag = false; diff --git a/Source/controls/plrctrls.cpp b/Source/controls/plrctrls.cpp index 1154bb2ee56..902b89a980b 100644 --- a/Source/controls/plrctrls.cpp +++ b/Source/controls/plrctrls.cpp @@ -1003,7 +1003,7 @@ void plrctrls_after_check_curs_move() return; } if (!gbInvflag) { - *infostr = '\0'; + // infostr[0] = '\0'; bool ranged = HasRangedSkill(); switch (pcurstgt) {