Skip to content

Commit

Permalink
do not reset infostr
Browse files Browse the repository at this point in the history
- no need to reset infostr, it is supposed to work like tempstr
  • Loading branch information
pionere committed Sep 11, 2024
1 parent 929c919 commit 4ccea44
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Source/control.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion Source/controls/plrctrls.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1003,7 +1003,7 @@ void plrctrls_after_check_curs_move()
return;
}
if (!gbInvflag) {
*infostr = '\0';
// infostr[0] = '\0';
bool ranged = HasRangedSkill();

switch (pcurstgt) {
Expand Down

0 comments on commit 4ccea44

Please sign in to comment.