🚨 Count of letters is always positive
This commit is contained in:
parent
c29b3eef81
commit
f54b7d0896
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue