diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2017-05-27 11:30:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-27 11:30:30 +0200 |
commit | 6a088335163be87d53ece476281d9baa3fcba0a4 (patch) | |
tree | 7aa37f034a976f44f5ecc68c42b2429d48a97429 /modules/gdscript/gd_function.cpp | |
parent | 168d8a57dac98ae82ff16a5c89fce63d84efc3ca (diff) | |
parent | 015d36d18bb3f9fe21452a470aac2c3a3597b92f (diff) | |
download | redot-engine-6a088335163be87d53ece476281d9baa3fcba0a4.tar.gz |
Merge pull request #8933 from Hinsbart/is_keyword
GDScript: Use "is" keyword for type checking.
Diffstat (limited to 'modules/gdscript/gd_function.cpp')
-rw-r--r-- | modules/gdscript/gd_function.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/gdscript/gd_function.cpp b/modules/gdscript/gd_function.cpp index fb32d23ad5..e8a8e20927 100644 --- a/modules/gdscript/gd_function.cpp +++ b/modules/gdscript/gd_function.cpp @@ -358,12 +358,12 @@ Variant GDFunction::call(GDInstance *p_instance, const Variant **p_args, int p_a if (a->get_type() != Variant::OBJECT || a->operator Object *() == NULL) { - err_text = "Left operand of 'extends' is not an instance of anything."; + err_text = "Left operand of 'is' is not an instance of anything."; break; } if (b->get_type() != Variant::OBJECT || b->operator Object *() == NULL) { - err_text = "Right operand of 'extends' is not a class."; + err_text = "Right operand of 'is' is not a class."; break; } #endif @@ -401,7 +401,7 @@ Variant GDFunction::call(GDInstance *p_instance, const Variant **p_args, int p_a if (!nc) { - err_text = "Right operand of 'extends' is not a class (type: '" + obj_B->get_class() + "')."; + err_text = "Right operand of 'is' is not a class (type: '" + obj_B->get_class() + "')."; break; } |