Merge pull request #8622 from mcanders/mcanders/issue8314_get_shader_type_index
Fix get_shader_type index upper bound
This commit is contained in:
commit
ab9d7241d9
1 changed files with 1 additions and 1 deletions
|
@ -3751,7 +3751,7 @@ String ShaderLanguage::get_shader_type(const String &p_code) {
|
|||
|
||||
String cur_identifier;
|
||||
|
||||
for (int i = 0; i < p_code.length() + 1; i++) {
|
||||
for (int i = 0; i < p_code.length(); i++) {
|
||||
|
||||
if (p_code[i] == ';') {
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue