Merge pull request #2749 from TheHX/fix_string_content_test
Fix String content test
This commit is contained in:
commit
5dcfdb3435
1 changed files with 1 additions and 1 deletions
|
@ -2587,7 +2587,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…
Add table
Reference in a new issue