diff options
Diffstat (limited to 'scene/resources/text_file.cpp')
-rw-r--r-- | scene/resources/text_file.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/resources/text_file.cpp b/scene/resources/text_file.cpp index 33bb0a83e9..1dc46711f8 100644 --- a/scene/resources/text_file.cpp +++ b/scene/resources/text_file.cpp @@ -33,7 +33,7 @@ #include "core/io/file_access.h" bool TextFile::has_text() const { - return text != ""; + return !text.is_empty(); } String TextFile::get_text() const { |