ncannasse пре 12 година
родитељ
комит
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;
 	}