String: Add contains().

This commit is contained in:
Anilforextra 2022-02-03 21:48:38 +05:45
parent bf12719cca
commit adbe948bda
57 changed files with 142 additions and 119 deletions

View file

@ -827,7 +827,7 @@ Error GDScript::reload(bool p_keep_state) {
return OK;
}
#else
if (source.find("_BASE_") != -1) {
if (source.contains("_BASE_")) {
return OK;
}
#endif