ncannasse 8 năm trước cách đây
mục cha
commit
180b5b9f63
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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;