]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - console.c
cvar: Check if cvar is NULL before adding callback. Implement Cvar_Callback to fire...
[xonotic/darkplaces.git] / console.c
index ad20495cd9e47df86eb7f5e54fb0b386d42497e6..219a68d7bca0d002cd6920652f15591f10e11315 100644 (file)
--- a/console.c
+++ b/console.c
@@ -1526,7 +1526,7 @@ Modified by EvilTypeGuy eviltypeguy@qeradiant.com
 */
 static void Con_DrawInput(qbool is_console, float x, float v, float inputsize)
 {
-       int y, i, col_out, linepos, text_start, prefix_start;
+       int y, i, col_out, linepos, text_start, prefix_start = 0;
        char text[MAX_INPUTLINE + 5 + 9 + 1]; // space for ^xRGB, "say_team:" and \0
        float xo;
        size_t len_out;