ncannasse %!s(int64=8) %!d(string=hai) anos
pai
achega
180b5b9f63
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      h2d/Console.hx

+ 1 - 1
h2d/Console.hx

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