Sfoglia il codice sorgente

tools-imgui: cleanup

Daniele Bartolini 7 anni fa
parent
commit
e9f300496f
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      tools-imgui/widgets/console.inl

+ 2 - 0
tools-imgui/widgets/console.inl

@@ -27,6 +27,8 @@ Console::Console()
 	vector::push_back(_commands, str);
 	str = "history - Show recent commands";
 	vector::push_back(_commands, str);
+
+	memset(_input_text, 0, sizeof(_input_text));
 }
 
 Console::~Console()