Browse Source

🚨 Count of letters is always positive

pull/2971/head
Anders Jenbo 5 years ago
parent
commit
f54b7d0896
  1. 2
      Source/control.cpp

2
Source/control.cpp

@ -1670,7 +1670,7 @@ void DrawTalkPan(const Surface &out)
int x = PANEL_LEFT + 200;
int y = PANEL_Y + 10;
int idx = DrawString(out, TalkMessage, { { x, y }, { 250, 27 } }, UiFlags::ColorWhite | UiFlags::PentaCursor, 1, 13);
uint32_t idx = DrawString(out, TalkMessage, { { x, y }, { 250, 27 } }, UiFlags::ColorWhite | UiFlags::PentaCursor, 1, 13);
if (idx < sizeof(TalkMessage))
TalkMessage[idx] = '\0';

Loading…
Cancel
Save