Fixed console cursor positioning.
[btb/d2x.git] / console / CON_console.c
index d7fac73..40251ac 100644 (file)
@@ -681,7 +681,7 @@ void DrawCommandLine() {
        }
 
        if(Blink) {
-               int prompt_width, command_width, h, w;
+               int prompt_width, cmd_width, h, w;
 
                gr_get_string_size(Topmost->Prompt, &prompt_width, &h, &w);
                gr_get_string_size(Topmost->LCommand + Topmost->Offset, &cmd_width, &h, &w);