mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
Fix more issues found by cppcheck.
This commit is contained in:
@@ -184,7 +184,7 @@ bool Variant::can_convert(Variant::Type p_type_from, Variant::Type p_type_to) {
|
||||
if (p_type_from == p_type_to) {
|
||||
return true;
|
||||
}
|
||||
if (p_type_to == NIL && p_type_from != NIL) { //nil can convert to anything
|
||||
if (p_type_to == NIL) { //nil can convert to anything
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -490,7 +490,7 @@ bool Variant::can_convert_strict(Variant::Type p_type_from, Variant::Type p_type
|
||||
if (p_type_from == p_type_to) {
|
||||
return true;
|
||||
}
|
||||
if (p_type_to == NIL && p_type_from != NIL) { //nil can convert to anything
|
||||
if (p_type_to == NIL) { //nil can convert to anything
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user