ncannasse 12 лет назад
Родитель
Сommit
8b5da97225
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      h2d/Text.hx

+ 1 - 1
h2d/Text.hx

@@ -53,7 +53,7 @@ class Text extends Drawable {
 	
 	function set_text(t) {
 		this.text = t == null ? "null" : t;
-		if( allocated ) initGlyphs(text);
+		if( allocated && font != null ) initGlyphs(text);
 		return t;
 	}