mirror of
https://github.com/tiennm99/godot.git
synced 2026-08-06 04:23:34 +00:00
Merge pull request #8622 from mcanders/mcanders/issue8314_get_shader_type_index
Fix get_shader_type index upper bound
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user