Skip to content

Commit f5d97f4

Browse files
committed
Call toString to avoid crashes if numbers are passed in.
1 parent 7ee785b commit f5d97f4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • v3/src/gameobjects/text/static

v3/src/gameobjects/text/static/Text.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ var Text = new Class({
9393

9494
if (value !== this.text)
9595
{
96-
this.text = value;
96+
this.text = value.toString();
9797

9898
this.updateText();
9999
}

0 commit comments

Comments
 (0)