diff --git a/source/src/menus.cpp b/source/src/menus.cpp index aff2baca..c1ebd592 100644 --- a/source/src/menus.cpp +++ b/source/src/menus.cpp @@ -205,7 +205,7 @@ struct mitemtextinput : mitemtext int tw = VIRTW/4; if(selection) renderbg(x+w-tw, y-FONTH/6, tw, NULL); draw_text(text, x, y); - draw_text(input.buf, x+w-tw, y, 255, 255, 255, 255, selection ? (input.pos>=0 ? input.pos : strlen(input.buf)) : -1); + draw_text(input.buf, x+w-tw, y, 255, 255, 255, 255, selection ? (input.pos>=0 ? input.pos : (int)strlen(input.buf)) : -1); } virtual void focus(bool on)