Fix get_shader_type index upper bound
This commit is contained in:
parent
64c31a3a9f
commit
212c6306a8
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