ui/common/types.c

changeset 1115
65870e2dbc1b
parent 1113
2df0be42b5e0
--- a/ui/common/types.c	Tue Apr 28 16:36:10 2026 +0200
+++ b/ui/common/types.c	Wed Apr 29 21:26:14 2026 +0200
@@ -978,7 +978,7 @@
 
 char* ui_text_getsubstr(UiText *text, int begin, int end) {
     if(text->getsubstr) {
-        text->getsubstr(text, begin, end);
+        return text->getsubstr(text, begin, end);
     } else {
         return NULL;
     }

mercurial