mirror of
https://github.com/godotengine/godot.git
synced 2025-02-05 02:13:13 +00:00
Fix String content test
This commit is contained in:
parent
dde6396f22
commit
d5fbd1d262
@ -2573,7 +2573,7 @@ bool Variant::in(const Variant& p_index, bool *r_valid) const {
|
||||
String idx=p_index;
|
||||
const String *str=reinterpret_cast<const String*>(_data._mem);
|
||||
|
||||
return str->find("idx")!=-1;
|
||||
return str->find(idx)!=-1;
|
||||
}
|
||||
|
||||
} break;
|
||||
|
Loading…
Reference in New Issue
Block a user