Add missing script_type
nullptr
check
Co-authored-by: Fabio Alessandrelli <fabio.alessandrelli@gmail.com>
(cherry picked from commit 1236302388
)
This commit is contained in:
parent
314c729d2c
commit
09dc11bff5
@ -4130,7 +4130,7 @@ String GDScriptParser::DataType::to_string() const {
|
||||
return class_type->fqcn;
|
||||
case SCRIPT: {
|
||||
if (is_meta_type) {
|
||||
return script_type->get_class_name().operator String();
|
||||
return script_type != nullptr ? script_type->get_class_name().operator String() : "";
|
||||
}
|
||||
String name = script_type != nullptr ? script_type->get_name() : "";
|
||||
if (!name.is_empty()) {
|
||||
|
Loading…
Reference in New Issue
Block a user