ncannasse 8 gadi atpakaļ
vecāks
revīzija
180b5b9f63
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      h2d/Console.hx

+ 1 - 1
h2d/Console.hx

@@ -175,7 +175,7 @@ class Console extends h2d.Sprite {
 		case Key.DOWN:
 			if(tf.text == curCmd) return;
 			if(logIndex == logs.length - 1) {
-				tf.text = curCmd;
+				tf.text = curCmd == null ? "" : curCmd;
 				tf.cursorIndex = tf.text.length;
 				logIndex = -1;
 				return;