mirror of
https://github.com/godotengine/godot.git
synced 2025-10-28 12:14:44 +00:00
range() with non-numeric const argument crash fix
(cherry picked from commit 3e10392d48)
This commit is contained in:
parent
ee7bde231c
commit
72aa9ce7fc
1 changed files with 2 additions and 0 deletions
|
|
@ -3156,6 +3156,8 @@ void GDScriptParser::_parse_block(BlockNode *p_block, bool p_static) {
|
||||||
ConstantNode *c = static_cast<ConstantNode *>(op->arguments[i]);
|
ConstantNode *c = static_cast<ConstantNode *>(op->arguments[i]);
|
||||||
if (c->value.get_type() == Variant::REAL || c->value.get_type() == Variant::INT) {
|
if (c->value.get_type() == Variant::REAL || c->value.get_type() == Variant::INT) {
|
||||||
constants.push_back(c->value);
|
constants.push_back(c->value);
|
||||||
|
} else {
|
||||||
|
constant = false;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
constant = false;
|
constant = false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue